浏览代码

[fx] prevent editor from ticking sub fx

They get tick by their parent anyways
Clément Espeute 11 月之前
父节点
当前提交
475bd23e03
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      hide/view/FXEditor.hx

+ 4 - 1
hide/view/FXEditor.hx

@@ -1741,8 +1741,11 @@ class FXEditor extends hide.view.FileView {
 			}
 		}
 
-		for(fx in allFx)
+		for(fx in allFx) {
+			@:privateAccess if (fx.parentFX != null)
+				continue;
 			fx.setTime(currentTime - fx.startDelay);
+		}
 
 		// Fix anim events :
 		// we force play the first or last frame of the nearset