2
0
Nicolas Cannasse 13 жил өмнө
parent
commit
212d3c7088
1 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 4 2
      h3d/fbx/Library.hx

+ 4 - 2
h3d/fbx/Library.hx

@@ -63,7 +63,7 @@ class Library {
 		}
 	}
 	
-	public function getMesh( name : String ) {
+	public function getMesh( name : String = "" ) {
 		var geom = null;
 		for( g in root.getAll("Objects.Geometry") )
 			if( g.hasProp(PString("Geometry::" + name)) ) {
@@ -108,7 +108,9 @@ class Library {
 	public function setRoot(root) {
 		this.root = root;
 		reset();
-		load(root.childs);
+		var old = root.childs;
+		root.childs = [];
+		load(old);
 	}
 	
 }