Browse Source

BufferGeometry: Fixed bad empty code. See #8674.

Mr.doob 9 years ago
parent
commit
bb52d29924
1 changed files with 1 additions and 2 deletions
  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 ) {
 		if ( positions === undefined || positions.length === 0 ) {
 
 
-			this.boundingBox.min.set( 0, 0, 0 );
-			this.boundingBox.max.set( 0, 0, 0 );
+			this.boundingBox.makeEmpty();
 
 
 		}
 		}