Browse Source

Merge pull request #6337 from darkowic/fix/preserves_updatable_option

Preserve updatable option for Mesh.flipFaces and Mesh.forceSharedVertices
David Catuhe 6 years ago
parent
commit
040da1c9b0
1 changed files with 2 additions and 2 deletions
  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));
         }
     }