2
0
Эх сурвалжийг харах

[fx] prevent editor from ticking sub fx

They get tick by their parent anyways
Clément Espeute 11 сар өмнө
parent
commit
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