Explorar o código

FX: Take FXRoot transform into account

trethaller %!s(int64=4) %!d(string=hai) anos
pai
achega
8990c0ae14
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      hrt/prefab/fx/FX.hx

+ 1 - 5
hrt/prefab/fx/FX.hx

@@ -400,11 +400,7 @@ class FX extends BaseFX {
 		var useFXRoot = #if editor fromRef #else true #end;
 		var root = getFXRoot(ctx, this);
 		if(useFXRoot && root != null){
-			for( c in root.children ) {
-				var co = Std.downcast(c , hrt.prefab.l3d.Constraint);
-				if( co == null )
-					makeChildren(ctx,c);
-			}
+			root.make(ctx);
 		}
 		else
 			super.make(ctx);