浏览代码

BufferGeometry: Fixed bad empty code. See #8674.

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

+ 1 - 2
src/core/BufferGeometry.js

@@ -568,8 +568,7 @@ THREE.BufferGeometry.prototype = {
 
 		if ( positions === undefined || positions.length === 0 ) {
 
-			this.boundingBox.min.set( 0, 0, 0 );
-			this.boundingBox.max.set( 0, 0, 0 );
+			this.boundingBox.makeEmpty();
 
 		}