소스 검색

Adding is used

Ibraheem Osama 7 년 전
부모
커밋
ea9d843ab3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Particles/babylon.particleSystem.ts

+ 2 - 0
src/Particles/babylon.particleSystem.ts

@@ -137,6 +137,7 @@
         public stockSubSystems = new StringDictionary<Array<SubParticleSystem>>();
 
         private _isEmitting = false;
+        private _isUsed = false;
         // to be overriden by subSystems
         public stoppedEmitting(): void {
 
@@ -373,6 +374,7 @@
 
             if (!this._alive && this._isEmitting) {
                 this._isEmitting = false;
+                this._isUsed = false;
                 this.stoppedEmitting();
             }