ソースを参照

fixed constraint object path

Nicolas Cannasse 4 年 前
コミット
253ec81fa1
1 ファイル変更1 行追加11 行削除
  1. 1 11
      hide/prefab/EditContext.hx

+ 1 - 11
hide/prefab/EditContext.hx

@@ -129,17 +129,7 @@ class EditContext {
 			path.pop();
 		}
 
-		// for references, we have an extra root level
-		var roots;
-		if( rootContext.shared.parent == null )
-			roots = [rootContext.shared.root3d];
-		else {
-			roots = [];
-			for( o in rootContext.shared.root3d )
-				roots.push(o);
-		}
-
-		for( o in roots )
+		for( o in rootContext.shared.root3d )
 			getRec([], o);
 
 		return out;