Skip to content

Commit 132a459

Browse files
committed
fix so that the prefab link is not broken
1 parent 329cfd3 commit 132a459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private static List<GameObject> OnConvertInPlace (GameObject [] unityActiveGOs)
108108
Object unityMainAsset = AssetDatabase.LoadMainAssetAtPath (fbxFileName);
109109

110110
if (unityMainAsset != null) {
111-
Object unityObj = PrefabUtility.InstantiateAttachedAsset (unityMainAsset);
111+
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset);
112112
GameObject unityGO = unityObj as GameObject;
113113
if (unityGO != null)
114114
{

0 commit comments

Comments
 (0)