Browse Source

Match vertexbuffers previous behaviour

Ben Adams 9 năm trước cách đây
mục cha
commit
792fb57aa4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Mesh/babylon.buffer.ts

+ 1 - 1
src/Mesh/babylon.buffer.ts

@@ -86,7 +86,7 @@
 
             if (this._updatable) { // update buffer
                 this._engine.updateDynamicVertexBuffer(this._buffer, data, offset, (vertexCount ? vertexCount * this.getStrideSize() : undefined));
-                this._data = data;
+                this._data = null;
             }
         }