浏览代码

BufferGeometry: Added box.makeEmpty() in computeBoundingSphere. Fixes #4277.

Mr.doob 11 年之前
父节点
当前提交
f2b9ad4cf0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/core/BufferGeometry.js

+ 2 - 0
src/core/BufferGeometry.js

@@ -167,6 +167,8 @@ THREE.BufferGeometry.prototype = {
 
 			if ( positions ) {
 
+				box.makeEmpty();
+
 				var center = this.boundingSphere.center;
 
 				for ( var i = 0, il = positions.length; i < il; i += 3 ) {