Skip to content

Commit ce44e09

Browse files
authored
Merge pull request #32 from Unity-Technologies/UNI-21408-prefab-link-broken-bug
UNI-21408 fix so that the prefab link is not broken
2 parents abcaf02 + 132a459 commit ce44e09

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
@@ -112,7 +112,7 @@ private static List<GameObject> OnConvertInPlace (GameObject [] unityActiveGOs)
112112
Object unityMainAsset = AssetDatabase.LoadMainAssetAtPath (fbxFileName);
113113

114114
if (unityMainAsset != null) {
115-
Object unityObj = PrefabUtility.InstantiateAttachedAsset (unityMainAsset);
115+
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset);
116116
GameObject unityGO = unityObj as GameObject;
117117
if (unityGO != null)
118118
{

0 commit comments

Comments
 (0)