Ver código fonte

rebuild missing buffers when particle system is rebuilt

Trevor Baron 6 anos atrás
pai
commit
0619d6621d
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/Particles/particleSystem.ts

+ 4 - 0
src/Particles/particleSystem.ts

@@ -1698,6 +1698,10 @@ export class ParticleSystem extends BaseParticleSystem implements IDisposable, I
         if (this._vertexBuffer) {
             this._vertexBuffer._rebuild();
         }
+
+        for (var key in this._vertexBuffers) {
+            this._vertexBuffers[key]._rebuild();
+        }
     }
 
     /**