Browse Source

automatically set modelRoot on top object

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
cb312a55cf
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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