Browse Source

Preserve updatable option for Mesh.flipFaces and Mesh.forceSharedVertices

Dariusz Rzepka 6 năm trước cách đây
mục cha
commit
decc1d918b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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));
         }
     }