浏览代码

rebuild missing buffers when particle system is rebuilt

Trevor Baron 6 年之前
父节点
当前提交
0619d6621d
共有 1 个文件被更改,包括 4 次插入0 次删除
  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();
+        }
     }
 
     /**