Explorar o código

Adding is used

Ibraheem Osama %!s(int64=7) %!d(string=hai) anos
pai
achega
ea9d843ab3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();
             }