Skip to content

Commit c906606

Browse files
kirill-titov-uEvergreen
authored andcommitted
[RPW] Prevent vfx graph reimport on the AssetImportWorkers
https://jira.unity3d.com/browse/UUM-66780 Prevent vfx graph reimport on the AssetImportWorkers by not subscribing to the Render Pipeline Manager callback
1 parent f5018c8 commit c906606

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Packages/com.unity.visualeffectgraph/Editor/Core/VFXLibrary.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ public static VFXSRPBinder currentSRPBinder
601601
[InitializeOnLoadMethod]
602602
private static void RegisterSRPChangeCallback()
603603
{
604-
RenderPipelineManager.activeRenderPipelineTypeChanged += SRPChanged;
604+
if(!AssetDatabase.IsAssetImportWorkerProcess())
605+
RenderPipelineManager.activeRenderPipelineTypeChanged += SRPChanged;
605606
}
606607

607608
private static void SRPChanged()

0 commit comments

Comments
 (0)