Parcourir la source

[fx] prevent editor from ticking sub fx

They get tick by their parent anyways
Clément Espeute il y a 11 mois
Parent
commit
475bd23e03
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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