Skip to content

Commit d8e8fca

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 ab25368 commit d8e8fca

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
@@ -105,6 +105,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
105105
- Fix issue with strips outputs that could cause too many vertices to be renderered
106106
- SpawnIndex attribute returns correct value in update and outputs contexts
107107
- 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/)
108+
- Avoid other NullReferenceException using property binders
108109

109110
## [7.1.1] - 2019-09-05
110111
### 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)