From c73eff8c53663621ba6bf2cbb9bb288a3f0d730b Mon Sep 17 00:00:00 2001 From: nameearly <2741313455@qq.com> Date: Tue, 7 Apr 2026 05:39:24 +0800 Subject: [PATCH] BufferGeometryUtils: Fix two bugs. (#33338) --- examples/jsm/utils/BufferGeometryUtils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/jsm/utils/BufferGeometryUtils.js b/examples/jsm/utils/BufferGeometryUtils.js index c84dc7b2bbc998..6e996616e299b6 100644 --- a/examples/jsm/utils/BufferGeometryUtils.js +++ b/examples/jsm/utils/BufferGeometryUtils.js @@ -286,8 +286,7 @@ function mergeGeometries( geometries, useGroups = false ) { for ( const name in morphAttributes ) { const numMorphTargets = morphAttributes[ name ][ 0 ].length; - - if ( numMorphTargets === 0 ) break; + if ( numMorphTargets === 0 ) continue; mergedGeometry.morphAttributes = mergedGeometry.morphAttributes || {}; mergedGeometry.morphAttributes[ name ] = []; @@ -1021,7 +1020,7 @@ function computeMorphedAttributes( object ) { const morphPosition = geometry.morphAttributes.position; const morphTargetsRelative = geometry.morphTargetsRelative; const normalAttribute = geometry.attributes.normal; - const morphNormal = geometry.morphAttributes.position; + const morphNormal = geometry.morphAttributes.normal; const groups = geometry.groups; const drawRange = geometry.drawRange;