We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aaa8c1 commit 80e4d07Copy full SHA for 80e4d07
1 file changed
Runtime/Scripts/GLTFSettings.cs
@@ -380,8 +380,23 @@ void FindAndRegisterPlugins<T>(List<T> plugins) where T : GLTFPlugin
380
#if UNITY_EDITOR
381
if (AssetDatabase.Contains(settings))
382
{
383
- AssetDatabase.AddObjectToAsset(newInstance, settings);
384
- EditorUtility.SetDirty(settings);
+ if (AssetDatabase.IsAssetImportWorkerProcess())
+ {
385
+ EditorApplication.delayCall += () =>
386
387
+ if (settings)
388
389
+ AssetDatabase.AddObjectToAsset(newInstance, settings);
390
+ EditorUtility.SetDirty(settings);
391
+ }
392
+ };
393
+
394
395
+ else
396
397
398
399
400
}
401
#endif
402
0 commit comments