Skip to content

Commit bb52d29

Browse files
committed
BufferGeometry: Fixed bad empty code. See mrdoob#8674.
1 parent 6b8f175 commit bb52d29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/BufferGeometry.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,7 @@ THREE.BufferGeometry.prototype = {
568568

569569
if ( positions === undefined || positions.length === 0 ) {
570570

571-
this.boundingBox.min.set( 0, 0, 0 );
572-
this.boundingBox.max.set( 0, 0, 0 );
571+
this.boundingBox.makeEmpty();
573572

574573
}
575574

0 commit comments

Comments
 (0)