Merge pull request #11896 from druiz17/fix-hud-hmd-rc60

fix laser interaction on HUD in HMD mode
This commit is contained in:
Dante Ruiz 2017-11-30 11:48:39 -08:00 committed by GitHub
commit 785eedfb1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@
this.pointingAtTablet = function(controllerData) {
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() {