Skip to content

Commit

Permalink
Minor style adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jun 29, 2024
1 parent f2082e7 commit a6608cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/utils/mergeGeometries.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ export function mergeGeometries( geometries, options = {}, targetGeometry = new

if ( key === 'color' && targetAttribute.itemSize !== attr.itemSize ) {

//make sure the color attribute is aligned with itemSize 3 to 4
for ( let index = offset; index < attr.count; ++ index ) {
// make sure the color attribute is aligned with itemSize 3 to 4
for ( let index = offset, l = attr.count; index < l; index ++ ) {

attr.setXYZW( index, targetAttribute.getX( index ), targetAttribute.getY( index ), targetAttribute.getZ( index ), 1.0 );

Expand Down

0 comments on commit a6608cd

Please sign in to comment.