mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +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;
|
||||
});
|
||||
|
||||
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) {
|
||||
if(activationTimeout!==null){
|
||||
Script.clearTimeout(activationTimeout);
|
||||
}
|
||||
if (this.updateConnected === true) {
|
||||
Script.update.disconnect(this.update);
|
||||
}
|
||||
this.disableMappings();
|
||||
this.turnOffOverlayBeams();
|
||||
|
||||
|
||||
this.updateConnected = null;
|
||||
|
||||
Script.setTimeout(function() {
|
||||
|
|
Loading…
Reference in a new issue