Skip to content

Commit 50eb3fc

Browse files
iTris666julienf-unity
authored andcommitted
Force ui update when shader might be reimported in StaticMeshOutput (#158)
1 parent 64dc8d0 commit 50eb3fc

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
@@ -267,6 +267,8 @@ public override void CheckGraphBeforeImport()
267267
// If the graph is reimported it can be because one of its depedency such as the shadergraphs, has been changed.
268268
((VFXDataMesh)GetData()).RefreshShader(); // TODO This triggers an invalidate that is theorically not needed but require to fix a bug with shader graph dependency
269269
ResyncSlots(true);
270+
271+
Invalidate(InvalidationCause.kUIChangedTransient);
270272
}
271273
}
272274
}

0 commit comments

Comments
 (0)