提交 73bb970e 编写于 作者: Q Quentin Quaadgras

Add a warning and ignore duplicate node IDs.

Addresses the "too much recursion" error in issue #14453
上级 63d7b66e
......@@ -3183,7 +3183,11 @@ THREE.ColladaLoader.prototype = {
}
library.nodes[ data.id ] = data;
if (hasNode(data.id)) {
console.warn("Duplicate id ", data.id, "ignoring")
} 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.
先完成此消息的编辑!
想要评论请 注册