ncannasse 11 anos atrás
pai
commit
b889c4a95a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      h3d/fbx/Library.hx

+ 2 - 2
h3d/fbx/Library.hx

@@ -205,7 +205,7 @@ class Library {
 	public function getParent( node : FbxNode, nodeName : String, ?opt : Bool ) {
 		var p = getParents(node, nodeName);
 		if( p.length > 1 )
-			throw node.getName() + " has " + p.length + " " + nodeName + " parents";
+			throw node.getName() + " has " + p.length + " " + nodeName + " parents "+[for( o in p ) o.getName()].join(",");
 		if( p.length == 0 && !opt )
 			throw "Missing " + node.getName() + " " + nodeName + " parent";
 		return p[0];
@@ -214,7 +214,7 @@ class Library {
 	public function getChild( node : FbxNode, nodeName : String, ?opt : Bool ) {
 		var c = getChilds(node, nodeName);
 		if( c.length > 1 )
-			throw node.getName() + " has " + c.length + " " + nodeName + " childs";
+			throw node.getName() + " has " + c.length + " " + nodeName + " childs "+[for( o in c ) o.getName()].join(",");
 		if( c.length == 0 && !opt )
 			throw "Missing " + node.getName() + " " + nodeName + " child";
 		return c[0];