Skip to content

Commit

Permalink
Fix loop bounds in BatchedMesh#computeBoundingBox to properly cover a…
Browse files Browse the repository at this point in the history
…ll instances (#29243)
  • Loading branch information
gfodor authored Aug 28, 2024
1 parent 89407fb commit d02a234
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/objects/BatchedMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,11 @@ class BatchedMesh extends Mesh {

}

const geometryCount = this._geometryCount;
const boundingBox = this.boundingBox;
const drawInfo = this._drawInfo;

boundingBox.makeEmpty();
for ( let i = 0; i < geometryCount; i ++ ) {
for ( let i = 0, l = drawInfo.length; i < l; i ++ ) {

if ( drawInfo[ i ].active === false ) continue;

Expand Down

0 comments on commit d02a234

Please sign in to comment.