Bläddra i källkod

Animate Particles when frozen

sebavan 5 år sedan
förälder
incheckning
872b29ae94
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      src/scene.ts

+ 7 - 0
src/scene.ts

@@ -3478,6 +3478,13 @@ export class Scene extends AbstractScene implements IAnimatable {
                 }
             }
 
+            if (this._activeParticleSystems) {
+                const psLength = this._activeParticleSystems.length;
+                for (let i = 0; i < psLength; i++) {
+                    this._activeParticleSystems.data[i].animate();
+                }
+            }
+
             return;
         }