Browse Source

Merge pull request #625 from punkoffice/punkoffice

Changed to use game object name instead of mesh name
David Catuhe 10 năm trước cách đây
mục cha
commit
b2ea680b6c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Exporters/Unity 5/Unity3D2Babylon/SceneBuilder.Meshes.cs

+ 2 - 2
Exporters/Unity 5/Unity3D2Babylon/SceneBuilder.Meshes.cs

@@ -39,9 +39,9 @@ namespace Unity3D2Babylon
             BabylonMesh babylonMesh = new BabylonMesh();
             var renderer = gameObject.GetComponent<Renderer>();
 
-            ExporterWindow.ReportProgress(progress, "Exporting mesh: " + mesh.name);
+            ExporterWindow.ReportProgress(progress, "Exporting mesh: " + gameObject.name);
 
-            babylonMesh.name = mesh.name;
+            babylonMesh.name = gameObject.name;
             babylonMesh.id = GetID(transform.gameObject);
             babylonMesh.receiveShadows = renderer.receiveShadows;