mirror of
https://github.com/overte-org/overte.git
synced 2025-07-17 18:16:55 +02:00
one bit of defensive code, plus some temporary logging
This commit is contained in:
parent
e48123b5bb
commit
a08346719c
1 changed files with 4 additions and 0 deletions
|
@ -234,6 +234,8 @@ function updateVisualization() {
|
||||||
if (state == STATES.inactive) {
|
if (state == STATES.inactive) {
|
||||||
deleteParticleEffect();
|
deleteParticleEffect();
|
||||||
deleteMakeConnectionParticleEffect();
|
deleteMakeConnectionParticleEffect();
|
||||||
|
// this should always be true if inactive, but just in case:
|
||||||
|
currentHand = undefined;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,6 +416,7 @@ function updateTriggers(value, fromKeyboard, hand) {
|
||||||
// ok now, we are either initiating or quitting...
|
// ok now, we are either initiating or quitting...
|
||||||
var isGripping = value > GRIP_MIN;
|
var isGripping = value > GRIP_MIN;
|
||||||
if (isGripping) {
|
if (isGripping) {
|
||||||
|
debug("updateTriggers called - gripping", handToString(hand));
|
||||||
if (state != STATES.inactive) {
|
if (state != STATES.inactive) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
@ -421,6 +424,7 @@ function updateTriggers(value, fromKeyboard, hand) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO: should we end handshake even when inactive? Ponder
|
// TODO: should we end handshake even when inactive? Ponder
|
||||||
|
debug("updateTriggers called -- no longer gripping", handToString(hand));
|
||||||
if (state != STATES.inactive) {
|
if (state != STATES.inactive) {
|
||||||
endHandshake();
|
endHandshake();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue