Skip to content

Commit 1762471

Browse files
PaulDemeulenaerejulienf-unity
authored andcommitted
Fix minor issue with PreviousPropertyBinder (bis) (#31)
* Fix minor issue with VFXPreviousPositionBinder.cs * Fix exception in OnEnable Note : I didn't try it locally yet. * Actual fix of VFXPreviousPositionBinder.cs Co-authored-by: Julien Fryer <[email protected]>
1 parent ed68b97 commit 1762471

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ The version number for this package has increased due to a version update of a r
116116
- Fix issue with strips outputs that could cause too many vertices to be renderered
117117
- SpawnIndex attribute returns correct value in update and outputs contexts
118118
- Disable Reset option in context menu for all VFXObject [Case 1251519](https://issuetracker.unity3d.com/product/unity/issues/guid/1251519/) & [Case 1251533](https://issuetracker.unity3d.com/product/unity/issues/guid/1251533/)
119+
- Avoid other NullReferenceException using property binders
119120

120121
## [7.1.1] - 2019-09-05
121122
### Added

com.unity.visualeffectgraph/Runtime/Utilities/PropertyBinding/Implementation/VFXPreviousPositionBinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class VFXPreviousPositionBinder : VFXBinderBase
1414
protected override void OnEnable()
1515
{
1616
base.OnEnable();
17-
oldPosition = Target.position;
17+
oldPosition = Target != null ? Target.position : Vector3.zero;
1818
}
1919

2020
public override bool IsValid(VisualEffect component)

0 commit comments

Comments
 (0)