don't do hand-controller edit object-selection when pointed at a HUD

element
This commit is contained in:
howard-stearns 2016-09-14 12:02:33 -07:00
parent 46e57f7773
commit 03a8af76e3

View file

@ -1022,6 +1022,9 @@ SelectionDisplay = (function() {
// No switching while the other is already triggered, so no need to release.
activeHand = (activeHand === Controller.Standard.RightHand) ? Controller.Standard.LeftHand : Controller.Standard.RightHand;
}
if (Reticle.pointingAtSystemOverlay || Overlays.getOverlayAtPoint(Reticle.position)) {
return;
}
var eventResult = that.mousePressEvent({});
if (!eventResult || (eventResult === 'selectionBox')) {
var pickRay = controllerComputePickRay();