未验证 提交 13fdb96a 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14465 from Splizard/duplicate_node_id_warning

Add a warning for and ignore duplicate node IDs.
......@@ -3183,7 +3183,15 @@ THREE.ColladaLoader.prototype = {
}
library.nodes[ data.id ] = data;
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.
先完成此消息的编辑!
想要评论请 注册