提交 18317890 编写于 作者: Q Quentin Quaadgras

Improve collada "duplicate node warning".

上级 73bb970e
......@@ -3183,10 +3183,14 @@ THREE.ColladaLoader.prototype = {
}
if (hasNode(data.id)) {
console.warn("Duplicate id ", data.id, "ignoring")
if ( hasNode( data.id ) ) {
console.warn( 'THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.', data.id );
} else {
library.nodes[ data.id ] = data;
}
return data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册