Skip to content

Commit e3167f6

Browse files
authored
Merge pull request #317 from Unity-Technologies/UNI-37065-export-instances-for-model-prefabs
UNI-37065 export model prefab instances as instances
2 parents d537242 + bef8f64 commit e3167f6

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
@@ -1243,7 +1243,8 @@ protected bool ExportInstance (GameObject unityGo, FbxNode fbxNode, FbxScene fbx
12431243
{
12441244
PrefabType unityPrefabType = PrefabUtility.GetPrefabType(unityGo);
12451245

1246-
if (unityPrefabType != PrefabType.PrefabInstance) return false;
1246+
if (unityPrefabType != PrefabType.PrefabInstance &&
1247+
unityPrefabType != PrefabType.ModelPrefabInstance) return false;
12471248

12481249
Object unityPrefabParent = PrefabUtility.GetPrefabParent (unityGo);
12491250

0 commit comments

Comments
 (0)