瀏覽代碼

Animate Particles when frozen

sebavan 5 年之前
父節點
當前提交
872b29ae94
共有 1 個文件被更改,包括 7 次插入0 次删除
  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;
         }