Skip to content

Commit bef8f64

Browse files
committed
export model prefab instances as instances
1 parent 7de21e1 commit bef8f64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,8 @@ protected bool ExportInstance (GameObject unityGo, FbxNode fbxNode, FbxScene fbx
12371237
{
12381238
PrefabType unityPrefabType = PrefabUtility.GetPrefabType(unityGo);
12391239

1240-
if (unityPrefabType != PrefabType.PrefabInstance) return false;
1240+
if (unityPrefabType != PrefabType.PrefabInstance &&
1241+
unityPrefabType != PrefabType.ModelPrefabInstance) return false;
12411242

12421243
Object unityPrefabParent = PrefabUtility.GetPrefabParent (unityGo);
12431244

0 commit comments

Comments
 (0)