mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
fix tabs/spaces in moveJoints
This commit is contained in:
parent
d602c71346
commit
b32aecc456
1 changed files with 5 additions and 5 deletions
|
@ -17,13 +17,13 @@ var FRAME_RATE = 24.0; // frames per second
|
|||
var isAnimating = false;
|
||||
|
||||
Controller.keyPressEvent.connect(function(event) {
|
||||
if (event.text == "SHIFT") {
|
||||
if (isAnimating) {
|
||||
if (event.text == "SHIFT") {
|
||||
if (isAnimating) {
|
||||
isAnimating = false;
|
||||
MyAvatar.stopAnimation(testAnimation);
|
||||
} else {
|
||||
isAnimating = true;
|
||||
MyAvatar.startAnimation(testAnimation, FRAME_RATE, 1.0, true, false);
|
||||
}
|
||||
}
|
||||
MyAvatar.startAnimation(testAnimation, FRAME_RATE, 1.0, true, false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue