Skip to content

Commit f62f1b6

Browse files
The regression has been probably introduced by #4971 What happens, 1st VFX import: - Not Sanitized - Skip first compilation - PostProcess => Sanitize & CheckGraphBeforeImport - Reimport Later, the ShaderGraph changes - Because the VFX is sanitized - Doesn't skip the first compilation => Fail - Post Process => CheckGraphBeforeImport is applied - ... Later VFX import will be ok until the SG isn't modified.
1 parent e6d34d3 commit f62f1b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

com.unity.visualeffectgraph/Editor/Models/VFXGraph.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,11 @@ public void CompileForImport()
950950
}
951951
}
952952
}
953+
954+
// Check Graph Before Import can be needed to synchronize modified shaderGraph
955+
foreach (var child in children)
956+
child.CheckGraphBeforeImport();
957+
953958
// Graph must have been sanitized at this point by the VFXGraphPreprocessor.OnPreprocess
954959
BuildSubgraphDependencies();
955960
PrepareSubgraphs();

0 commit comments

Comments
 (0)