Skip to content

Commit a20b24d

Browse files
committed
undo GetPrefabParent deprecated code removal
1 parent 190ab26 commit a20b24d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/com.unity.formats.fbx/Editor/Scripts/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ protected bool ExportInstance (GameObject unityGo, FbxNode fbxNode, FbxScene fbx
12511251
if (unityPrefabType != PrefabType.PrefabInstance &&
12521252
unityPrefabType != PrefabType.ModelPrefabInstance) return false;
12531253

1254-
Object unityPrefabParent = PrefabUtility.GetCorrespondingObjectFromSource (unityGo);
1254+
Object unityPrefabParent = PrefabUtility.GetPrefabParent (unityGo);
12551255

12561256
if (Verbose)
12571257
Debug.Log (string.Format ("exporting instance {0}({1})", unityGo.name, unityPrefabParent.name));

0 commit comments

Comments
 (0)