David Catuhe 7 years ago
parent
commit
a0afb803db
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Mesh/babylon.mesh.vertexData.ts

+ 3 - 0
src/Mesh/babylon.mesh.vertexData.ts

@@ -250,7 +250,10 @@
 
             if (this.indices) {
                 meshOrGeometry.setIndices(this.indices, null, updatable);
+            } else {
+                meshOrGeometry.setIndices([], null);
             }
+
             return this;
         }