Trevor Baron 6 years ago
parent
commit
fa66c80e29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Meshes/mesh.ts

+ 1 - 1
src/Meshes/mesh.ts

@@ -1547,7 +1547,7 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
 
     /** @hidden */
     public _rebuild(): void {
-        if(this._instanceDataStorage.instancesBuffer){
+        if (this._instanceDataStorage.instancesBuffer) {
             // Dispose instance buffer to be recreated in _renderWithInstances when rendered
             this._instanceDataStorage.instancesBuffer.dispose();
             this._instanceDataStorage.instancesBuffer = null;