浏览代码

automatically set modelRoot on top object

Nicolas Cannasse 4 年之前
父节点
当前提交
cb312a55cf
共有 1 个文件被更改,包括 3 次插入1 次删除
  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