Browse Source

Merge pull request #228 from clementlevasseur/patch-1

BugFix SubMesh with CreateFromIndices
deltakosh 11 năm trước cách đây
mục cha
commit
ce29cde978
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Babylon/Mesh/babylon.subMesh.ts

+ 2 - 2
Babylon/Mesh/babylon.subMesh.ts

@@ -172,11 +172,11 @@
 
                 if (vertexIndex < minVertexIndex)
                     minVertexIndex = vertexIndex;
-                else if (vertexIndex > maxVertexIndex)
+                if (vertexIndex > maxVertexIndex)
                     maxVertexIndex = vertexIndex;
             }
 
             return new BABYLON.SubMesh(materialIndex, minVertexIndex, maxVertexIndex - minVertexIndex + 1, startIndex, indexCount, mesh, renderingMesh);
         }
     }
-}
+}