Skip to content

Commit bfa27ea

Browse files
committed
move editor only code in FbxPrefab to FbxAutoUpdater
1 parent 187409a commit bfa27ea

File tree

6 files changed

+1127
-1088
lines changed

6 files changed

+1127
-1088
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ public static GameObject Convert (
199199
Object.DestroyImmediate(fbxPrefab);
200200
}
201201
fbxPrefab = unityGO.AddComponent<FbxPrefab>();
202-
fbxPrefab.SetSourceModel(unityMainAsset);
202+
var fbxPrefabUtility = new FbxPrefabAutoUpdater.FbxPrefabUtility (fbxPrefab);
203+
fbxPrefabUtility.SetSourceModel(unityMainAsset);
203204

204205
// Disconnect from the FBX file.
205206
PrefabUtility.DisconnectPrefabInstance(unityGO);

0 commit comments

Comments
 (0)