Browse Source

increaseVertices preserves updatable option

Dariusz Rzepka 6 năm trước cách đây
mục cha
commit
1753d7a985
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Meshes/mesh.ts

+ 1 - 1
src/Meshes/mesh.ts

@@ -2587,7 +2587,7 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
             }
 
             vertex_data.indices = indices;
-            vertex_data.applyToMesh(this);
+            vertex_data.applyToMesh(this, this.isVertexBufferUpdatable(VertexBuffer.PositionKind));
         }
     }