Skip to content

Commit

Permalink
r170 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Nov 9, 2024
1 parent e220f9d commit 4094caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/ExtensionUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export function computeBatchedBoundsTree( index = - 1, options = {} ) {

for ( let i = 0; i < geometryCount; i ++ ) {

options.range = drawRanges[ i ];
options.range = drawRanges ? drawRanges[ i ] : this.getGeometryRangeAt( i, _drawRangeInfo );
boundsTrees[ i ] = new MeshBVH( this.geometry, options );

}
Expand All @@ -216,7 +216,7 @@ export function computeBatchedBoundsTree( index = - 1, options = {} ) {

if ( index < drawRanges.length ) {

options.range = drawRanges[ index ];
options.range = drawRanges ? drawRanges[ index ] : this.getGeometryRangeAt( index, _drawRangeInfo );
boundsTrees[ index ] = new MeshBVH( this.geometry, options );

}
Expand Down

0 comments on commit 4094caa

Please sign in to comment.