Merge pull request #8600 from howard-stearns/no-edit-selection-when-over-ui

don't do hand-controller edit object-selection when pointed at a HUD element
This commit is contained in:
Howard Stearns 2016-09-15 16:17:59 -07:00 committed by GitHub
commit 7a4bcc4fff

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();