瀏覽代碼

Preserve updatable option for Mesh.flipFaces and Mesh.forceSharedVertices

Dariusz Rzepka 6 年之前
父節點
當前提交
decc1d918b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Meshes/mesh.ts

+ 2 - 2
src/Meshes/mesh.ts

@@ -2459,7 +2459,7 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
             }
         }
 
-        vertex_data.applyToMesh(this);
+        vertex_data.applyToMesh(this, this.isVertexBufferUpdatable(VertexBuffer.PositionKind));
         return this;
     }
 
@@ -2665,7 +2665,7 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
             vertex_data.normals = normals;
             vertex_data.uvs = uvs;
 
-            vertex_data.applyToMesh(this);
+            vertex_data.applyToMesh(this, this.isVertexBufferUpdatable(VertexBuffer.PositionKind));
         }
     }