We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8d331de + c966c35 commit 045c3bdCopy full SHA for 045c3bd
src/extras/objects/MorphBlendMesh.js
@@ -299,8 +299,12 @@ THREE.MorphBlendMesh.prototype.update = function ( delta ) {
299
300
if ( animation.directionBackwards ) mix = 1 - mix;
301
302
- this.morphTargetInfluences[ animation.currentFrame ] = mix * weight;
303
- this.morphTargetInfluences[ animation.lastFrame ] = ( 1 - mix ) * weight;
+ if (animation.currentFrame !== animation.lastFrame) {
+ this.morphTargetInfluences[animation.currentFrame] = mix * weight;
304
+ this.morphTargetInfluences[animation.lastFrame] = ( 1 - mix ) * weight;
305
+ } else {
306
+ this.morphTargetInfluences[animation.currentFrame] = weight;
307
+ }
308
309
}
310
0 commit comments