Skip to content

Commit a6608cd

Browse files
committed
Minor style adjustment
1 parent f2082e7 commit a6608cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/utils/mergeGeometries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ export function mergeGeometries( geometries, options = {}, targetGeometry = new
207207

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

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

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

0 commit comments

Comments
 (0)