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 10d680a commit 2f327d1Copy full SHA for 2f327d1
Assets/FbxExporters/Editor/FbxPrefabAutoUpdater.cs
@@ -989,7 +989,10 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
989
prefabComponent = prefabXfo.gameObject.AddComponent(fbxComponent.t);
990
Log("created component {0}:{1}", nodeName, fbxComponent.t);
991
}
992
-
+ // check that the component exists before copying to it
993
+ if (!prefabComponent) {
994
+ continue;
995
+ }
996
// Now set the values.
997
UnityEditor.EditorJsonUtility.FromJsonOverwrite(fbxComponent.jsonValue, prefabComponent);
998
0 commit comments