Skip to content

Commit 2f2c4b1

Browse files
committed
small fix to ExportInstances
-check return value of ExportMesh which now returns true on success -return true if mesh exported successfully so we don't export the mesh again in ExportComponents
1 parent b16a673 commit 2f2c4b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,9 +748,9 @@ protected bool ExportInstance (GameObject unityGo, FbxNode fbxNode, FbxScene fbx
748748

749749
if (!SharedMeshes.TryGetValue (unityPrefabParent.name, out fbxMesh))
750750
{
751-
ExportMesh (unityGo, fbxNode);
752-
if (fbxNode.GetMesh() != null) {
753-
SharedMeshes [unityPrefabParent.name] = fbxNode.GetMesh();
751+
if (ExportMesh (unityGo, fbxNode) && fbxNode.GetMesh() != null) {
752+
SharedMeshes [unityPrefabParent.name] = fbxNode.GetMesh ();
753+
return true;
754754
}
755755
}
756756

0 commit comments

Comments
 (0)