Skip to content

Commit bdeb917

Browse files
ludovic-theobaldPaulDemeulenaere
authored andcommitted
[Fix 1376278] Force read Alive in update when use somewhere else (#302)
* Force read Alive when it's written somewhere * Update changelog * Correct version for changelog Co-authored-by: Paul Demeulenaere <[email protected]>
1 parent 7a4bde9 commit bdeb917

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2424
- Collision with zero scale lead to undefined behavior [Case 1381562](https://issuetracker.unity3d.com/product/unity/issues/guid/1381562/)
2525
- Fixed GPU event particle init after restarting VisualEffect [Case 1378335](https://issuetracker.unity3d.com/product/unity/issues/guid/1378335/)
2626
- No more exception raised when selecting all nodes with CTRL+A and then deleting them
27+
- Particle Strip without lifetime do not die when Alive is set to false. [Case 1376278](https://issuetracker.unity3d.com/product/unity/issues/guid/1376278/)
2728

2829
## [13.1.2] - 2021-11-05
2930

com.unity.visualeffectgraph/Editor/Models/Contexts/Implementations/VFXBasicUpdate.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ public override IEnumerable<VFXAttributeInfo> attributes
186186
yield return new VFXAttributeInfo(VFXAttribute.ScaleY, VFXAttributeMode.Read);
187187
yield return new VFXAttributeInfo(VFXAttribute.ScaleZ, VFXAttributeMode.Read);
188188
}
189+
190+
if (GetData().IsAttributeUsed(VFXAttribute.Alive))
191+
{
192+
yield return new VFXAttributeInfo(VFXAttribute.Alive, VFXAttributeMode.Read);
193+
}
189194
}
190195
}
191196

0 commit comments

Comments
 (0)