Skip to content

Commit 3f567a8

Browse files
PaulDemeulenaerejulienf-unity
authored andcommitted
Fix minor issue with PreviousPropertyBinder (bis) #31
1 parent 1c76c10 commit 3f567a8

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

1718
## [7.5.0] - 2020-06-08
1819

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)