mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 18:47:46 +02:00
clear timeout one more place
This commit is contained in:
parent
41aa485f11
commit
f6984aaff8
2 changed files with 27 additions and 1 deletions
|
@ -509,3 +509,27 @@ Script.scriptEnding.connect(function () {
|
||||||
OffscreenFlags.navigationFocusDisabled = false;
|
OffscreenFlags.navigationFocusDisabled = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var isDisabled = false;
|
||||||
|
var handleHandMessages = function(channel, message, sender) {
|
||||||
|
var data;
|
||||||
|
if (sender === MyAvatar.sessionUUID) {
|
||||||
|
if (channel === 'Hifi-Hand-Pointer-Disabler') {
|
||||||
|
if (message === 'both') {
|
||||||
|
isDisabled = 'both';
|
||||||
|
}
|
||||||
|
if (message === 'left') {
|
||||||
|
isDisabled = 'left';
|
||||||
|
}
|
||||||
|
if (message === 'right') {
|
||||||
|
isDisabled = 'right'
|
||||||
|
}
|
||||||
|
if (message === 'none') {
|
||||||
|
isDisabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Messages.subscribe('Hifi-Hand-Pointer-Disabler');
|
||||||
|
Messages.messageReceived.connect(handleHandMessages);
|
|
@ -221,13 +221,15 @@ function Teleporter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.exitTeleportMode = function(value) {
|
this.exitTeleportMode = function(value) {
|
||||||
|
if(activationTimeout!==null){
|
||||||
|
Script.clearTimeout(activationTimeout);
|
||||||
|
}
|
||||||
if (this.updateConnected === true) {
|
if (this.updateConnected === true) {
|
||||||
Script.update.disconnect(this.update);
|
Script.update.disconnect(this.update);
|
||||||
}
|
}
|
||||||
this.disableMappings();
|
this.disableMappings();
|
||||||
this.turnOffOverlayBeams();
|
this.turnOffOverlayBeams();
|
||||||
|
|
||||||
|
|
||||||
this.updateConnected = null;
|
this.updateConnected = null;
|
||||||
|
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
|
|
Loading…
Reference in a new issue