Ver código fonte

Animate Particles when frozen

sebavan 5 anos atrás
pai
commit
872b29ae94
1 arquivos alterados com 7 adições e 0 exclusões
  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;
         }