David Catuhe 7 年之前
父节点
当前提交
a0afb803db
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;
         }