Bläddra i källkod

rebuild missing buffers when particle system is rebuilt

Trevor Baron 6 år sedan
förälder
incheckning
0619d6621d
1 ändrade filer med 4 tillägg och 0 borttagningar
  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();
+        }
     }
 
     /**