mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:13:09 +02:00
reduce calls to isPointOnDesktopWindow
This commit is contained in:
parent
dd436229c1
commit
d88ff701b5
2 changed files with 15 additions and 12 deletions
|
@ -370,6 +370,7 @@ Script.include("/~/system/libraries/Xform.js");
|
|||
};
|
||||
|
||||
this.isReady = function (controllerData) {
|
||||
if (HMD.active) {
|
||||
if (this.notPointingAtEntity(controllerData)) {
|
||||
return makeRunningValues(false, [], []);
|
||||
}
|
||||
|
@ -384,6 +385,8 @@ Script.include("/~/system/libraries/Xform.js");
|
|||
this.destroyContextOverlay();
|
||||
return makeRunningValues(false, [], []);
|
||||
}
|
||||
}
|
||||
return makeRunningValues(false, [], []);
|
||||
};
|
||||
|
||||
this.run = function (controllerData) {
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
|
||||
this.isReady = function (controllerData) {
|
||||
var otherModuleRunning = this.getOtherModule().running;
|
||||
if (!otherModuleRunning) {
|
||||
if (!otherModuleRunning && HMD.active) {
|
||||
if (this.processLaser(controllerData)) {
|
||||
this.running = true;
|
||||
return ControllerDispatcherUtils.makeRunningValues(true, [], []);
|
||||
|
|
Loading…
Reference in a new issue