From a6608cd67f7d93687bc58dfc365a922762fbbe23 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Sat, 29 Jun 2024 22:44:06 +0900 Subject: [PATCH] Minor style adjustment --- src/core/utils/mergeGeometries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/utils/mergeGeometries.js b/src/core/utils/mergeGeometries.js index de357ba9..ffeed27e 100644 --- a/src/core/utils/mergeGeometries.js +++ b/src/core/utils/mergeGeometries.js @@ -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 );