From da28977dfe691797c3330412f502753e157e3c22 Mon Sep 17 00:00:00 2001 From: alteredq Date: Thu, 20 Sep 2012 02:36:41 +0200 Subject: [PATCH] Fixed animation glitch in MD2CharacterComplex thanks to @herve3d Fixes #2419 --- examples/js/MD2CharacterComplex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/js/MD2CharacterComplex.js b/examples/js/MD2CharacterComplex.js index 3c01d3f0e3..0b13a92578 100644 --- a/examples/js/MD2CharacterComplex.js +++ b/examples/js/MD2CharacterComplex.js @@ -388,7 +388,7 @@ THREE.MD2CharacterComplex = function () { } - if ( Math.abs( this.speed ) < 0.2 * this.maxSpeed && !( controls.moveLeft || controls.moveRight ) ) { + if ( Math.abs( this.speed ) < 0.2 * this.maxSpeed && !( controls.moveLeft || controls.moveRight || controls.moveForward || controls.moveBackward ) ) { if ( this.activeAnimation !== idleAnimation ) { -- GitLab