From 3abc78e7d365fe298c60c8624d6f3d6c2a99887e Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Fri, 10 Mar 2017 17:18:13 -0800 Subject: [PATCH] Fix for finger/sytlus on invisible/hidden tablet. --- scripts/system/controllers/handControllerGrab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index 1ccf443a00..1693a6137a 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -1632,12 +1632,12 @@ function MyController(hand) { } // add the tabletScreen, if it is valid - if (HMD.tabletScreenID && HMD.tabletScreenID !== NULL_UUID) { + if (HMD.tabletScreenID && HMD.tabletScreenID !== NULL_UUID && Overlays.getProperty(HMD.tabletScreenID, "visible")) { stylusTargets.push(calculateStylusTargetFromOverlay(this.stylusTip, HMD.tabletScreenID)); } // add the tablet home button. - if (HMD.homeButtonID && HMD.homeButtonID !== NULL_UUID) { + if (HMD.homeButtonID && HMD.homeButtonID !== NULL_UUID && Overlays.getProperty(HMD.homeButtonID, "visible")) { stylusTargets.push(calculateStylusTargetFromOverlay(this.stylusTip, HMD.homeButtonID)); }