소스 검색

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();
+        }
     }
 
     /**