Skip to content

Commit 981e074

Browse files
iTris666GitHub Enterprise
authored andcommitted
Force ui update when shader might be reimported in StaticMeshOutput (#158)
1 parent 0c4cf10 commit 981e074

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ public override void CheckGraphBeforeImport()
262262
// If the graph is reimported it can be because one of its depedency such as the shadergraphs, has been changed.
263263
((VFXDataMesh)GetData()).RefreshShader(); // TODO This triggers an invalidate that is theorically not needed but require to fix a bug with shader graph dependency
264264
ResyncSlots(true);
265+
266+
Invalidate(InvalidationCause.kUIChangedTransient);
265267
}
266268
}
267269
}

0 commit comments

Comments
 (0)