mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
fix laser interaction on HUD in HMD mode
This commit is contained in:
parent
8eb8cb0994
commit
982fad5050
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
this.pointingAtTablet = function(controllerData) {
|
this.pointingAtTablet = function(controllerData) {
|
||||||
var rayPick = controllerData.rayPicks[this.hand];
|
var rayPick = controllerData.rayPicks[this.hand];
|
||||||
return (rayPick.objectID === HMD.tabletScreenID || rayPick.objectID === HMD.homeButtonID);
|
return (HMD.tabletScreenID && HMD.homeButtonID && (rayPick.objectID === HMD.tabletScreenID || rayPick.objectID === HMD.homeButtonID));
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getOtherModule = function() {
|
this.getOtherModule = function() {
|
||||||
|
|
Loading…
Reference in a new issue