瀏覽代碼

FX: Take FXRoot transform into account

trethaller 4 年之前
父節點
當前提交
8990c0ae14
共有 1 個文件被更改,包括 1 次插入5 次删除
  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 useFXRoot = #if editor fromRef #else true #end;
 		var root = getFXRoot(ctx, this);
 		var root = getFXRoot(ctx, this);
 		if(useFXRoot && root != null){
 		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
 		else
 			super.make(ctx);
 			super.make(ctx);