소스 검색

Merge pull request #228 from clementlevasseur/patch-1

BugFix SubMesh with CreateFromIndices
deltakosh 11 년 전
부모
커밋
ce29cde978
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
         }
     }
-}
+}