提交 44f1ef9b 编写于 作者: W Wittmann Tobias

#11745 GLTF2Loader removes extras from mesh

added group node inbetween node and meshnodes
上级 088f5369
...@@ -2652,6 +2652,11 @@ THREE.GLTF2Loader = ( function () { ...@@ -2652,6 +2652,11 @@ THREE.GLTF2Loader = ( function () {
} }
//do not clone children as they will be replaced anyway
var children = group.children
group.children=[];
var clonedgroup = group.clone();
group.children=children;
for ( var childrenId in group.children ) { for ( var childrenId in group.children ) {
var child = group.children[ childrenId ]; var child = group.children[ childrenId ];
...@@ -2746,10 +2751,10 @@ THREE.GLTF2Loader = ( function () { ...@@ -2746,10 +2751,10 @@ THREE.GLTF2Loader = ( function () {
} }
_node.add( child );
clonedgroup.add(child);
} }
_node.add( clonedgroup );
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册