Skip to content

Commit

Permalink
Merge pull request #15463 from Mugen87/dev2
Browse files Browse the repository at this point in the history
Mesh: Remove Geometry support from .updateMorphTargets()
  • Loading branch information
mrdoob committed Dec 28, 2018
2 parents cacce1a + 36a0d3b commit 23b7323
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/objects/Mesh.js
Expand Up @@ -104,17 +104,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {

if ( morphTargets !== undefined && morphTargets.length > 0 ) {

this.morphTargetInfluences = [];
this.morphTargetDictionary = {};

for ( m = 0, ml = morphTargets.length; m < ml; m ++ ) {

name = morphTargets[ m ].name || String( m );

this.morphTargetInfluences.push( 0 );
this.morphTargetDictionary[ name ] = m;

}
console.error( 'THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.' );

}

Expand Down

0 comments on commit 23b7323

Please sign in to comment.