Browse Source

automatically set modelRoot on top object

Nicolas Cannasse 4 years ago
parent
commit
cb312a55cf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      hxd/fmt/hmd/Library.hx

+ 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