corrected double log of arrow clicked

This commit is contained in:
Thomas FORGIONE
2015-07-03 09:58:44 +02:00
parent 31620de7ff
commit 3c11aba194
2 changed files with 25 additions and 17 deletions

View File

@@ -262,10 +262,13 @@ L3D.PointerCamera.prototype.onPointerLockChange = function() {
L3D.PointerCamera.prototype.update = function(time) {
if (this.moving) {
this.linearMotion(time);
} else if (this.movingHermite) {
this.hermiteMotion(time);
} else {
this.normalMotion(time);
this.shouldLogCameraAngles = false;
if (this.movingHermite) {
this.hermiteMotion(time);
} else {
this.normalMotion(time);
}
}
};