Skip to content

Commit c233b7d

Browse files
committed
Fix cases where some settings change didnt trigger a recompilation (#233)
1 parent 0392162 commit c233b7d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
- Deleting flow edge between Init and Update throw an invalid opeation exception [Case 1315593](https://issuetracker.unity3d.com/product/unity/issues/guid/1315593/)
1111
- Having more than five GPU Event output leads to "unexpected token 'if" at compilation [Case 1323434](https://issuetracker.unity3d.com/product/unity/issues/guid/1323434/)
1212
- Deleted properties still show up in the inspector [Case 1320952](https://issuetracker.unity3d.com/product/unity/issues/guid/1320952/)
13+
- Regression with some settings not always triggering a recompilation [Case 1322844](https://issuetracker.unity3d.com/product/unity/issues/guid/1322844/)
1314

1415
## [10.4.0] - 2020-01-26
1516
### Changed
@@ -37,7 +38,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3738
- Deleting a context node and a block while both are selected throws a null ref exception. [Case 315578](https://issuetracker.unity3d.com/product/unity/issues/guid/1315578/)
3839
- Fixed shader compilation errors with textures in shader graph [Case 1309219](https://issuetracker.unity3d.com/product/unity/issues/guid/1309219/)
3940
- Fixed issue with VFX using incorrect buffer type for strip data
40-
- Having more than five GPU Event output leads to "unexpected token 'if" at compilation [Case 1323434](https://issuetracker.unity3d.com/product/unity/issues/guid/1323434/)
4141

4242
## [10.3.1] - 2020-01-26
4343

com.unity.visualeffectgraph/Editor/Models/Contexts/VFXSRPSubOutput.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,12 @@ public virtual IEnumerable<KeyValuePair<string, VFXShaderWriter>> GetStencilStat
6666
{
6767
return Enumerable.Empty<KeyValuePair<string, VFXShaderWriter>>();
6868
}
69+
70+
protected override void OnInvalidate(VFXModel model, InvalidationCause cause)
71+
{
72+
base.OnInvalidate(model, cause);
73+
if (owner is VFXModel)
74+
((VFXModel)owner).Invalidate(model, cause); // Forward invalidate event to owner
75+
}
6976
}
7077
}

com.unity.visualeffectgraph/Editor/Models/Operators/VFXOperator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public override bool ResyncSlots(bool notify)
4141
try
4242
{
4343
changed = base.ResyncSlots(notify);
44-
if (changed && notify)
44+
if (notify)
4545
foreach (var slot in outputSlots) // invalidate expressions on output slots
4646
slot.InvalidateExpressionTree();
4747
}

0 commit comments

Comments
 (0)