Procházet zdrojové kódy

[fx] prevent editor from ticking sub fx

They get tick by their parent anyways
Clément Espeute před 11 měsíci
rodič
revize
475bd23e03
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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