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;