mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
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:
commit
7a4bcc4fff
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue