Skip to content

Commit 9f5a669

Browse files
committed
don't copy FbxPrefab when converting LinkedPrefab
1 parent 9194128 commit 9f5a669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.formats.fbx/Editor/ConvertToNestedPrefab.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,8 @@ internal static void CopyComponents(GameObject to, GameObject from, Dictionary<s
718718
continue;
719719
}
720720

721-
// ignore MeshFilter
722-
if (fromComponent is MeshFilter)
721+
// ignore MeshFilter and FbxPrefab (when converting LinkedPrefabs)
722+
if (fromComponent is MeshFilter || fromComponent is UnityEngine.Formats.Fbx.Exporter.FbxPrefab)
723723
{
724724
continue;
725725
}

0 commit comments

Comments
 (0)