提交 c730cadb 编写于 作者: M Mr.doob

Merge pull request #8328 from WestLangley/dev-box3

Box3.setFromObject(): handle empty children
......@@ -116,9 +116,13 @@ THREE.Box3.prototype = {
}
box.copy( geometry.boundingBox );
box.applyMatrix4( node.matrixWorld );
scope.union( box );
if ( ! geometry.boundingBox.isEmpty() ) {
box.copy( geometry.boundingBox );
box.applyMatrix4( node.matrixWorld );
scope.union( box );
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册