Browse Source

rebuild missing buffers when particle system is rebuilt

Trevor Baron 6 năm trước cách đây
mục cha
commit
0619d6621d
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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();
+        }
     }
 
     /**