Skip to content

Commit c73eff8

Browse files
authored
BufferGeometryUtils: Fix two bugs. (#33338)
1 parent b75d0c3 commit c73eff8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

examples/jsm/utils/BufferGeometryUtils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ function mergeGeometries( geometries, useGroups = false ) {
286286
for ( const name in morphAttributes ) {
287287

288288
const numMorphTargets = morphAttributes[ name ][ 0 ].length;
289-
290-
if ( numMorphTargets === 0 ) break;
289+
if ( numMorphTargets === 0 ) continue;
291290

292291
mergedGeometry.morphAttributes = mergedGeometry.morphAttributes || {};
293292
mergedGeometry.morphAttributes[ name ] = [];
@@ -1021,7 +1020,7 @@ function computeMorphedAttributes( object ) {
10211020
const morphPosition = geometry.morphAttributes.position;
10221021
const morphTargetsRelative = geometry.morphTargetsRelative;
10231022
const normalAttribute = geometry.attributes.normal;
1024-
const morphNormal = geometry.morphAttributes.position;
1023+
const morphNormal = geometry.morphAttributes.normal;
10251024

10261025
const groups = geometry.groups;
10271026
const drawRange = geometry.drawRange;

0 commit comments

Comments
 (0)