2
0
Эх сурвалжийг харах

automatically set modelRoot on top object

Nicolas Cannasse 4 жил өмнө
parent
commit
cb312a55cf

+ 3 - 1
hxd/fmt/hmd/Library.hx

@@ -366,7 +366,9 @@ class Library {
 			var p = objs[m.parent];
 			if( p != null ) p.addChild(obj);
 		}
-		return objs[0];
+		var o = objs[0];
+		if( o != null ) o.modelRoot = true;
+		return o;
 	}
 	#end