mirror of
https://github.com/overte-org/overte.git
synced 2025-07-28 21:06:24 +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.
|
// No switching while the other is already triggered, so no need to release.
|
||||||
activeHand = (activeHand === Controller.Standard.RightHand) ? Controller.Standard.LeftHand : Controller.Standard.RightHand;
|
activeHand = (activeHand === Controller.Standard.RightHand) ? Controller.Standard.LeftHand : Controller.Standard.RightHand;
|
||||||
}
|
}
|
||||||
|
if (Reticle.pointingAtSystemOverlay || Overlays.getOverlayAtPoint(Reticle.position)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var eventResult = that.mousePressEvent({});
|
var eventResult = that.mousePressEvent({});
|
||||||
if (!eventResult || (eventResult === 'selectionBox')) {
|
if (!eventResult || (eventResult === 'selectionBox')) {
|
||||||
var pickRay = controllerComputePickRay();
|
var pickRay = controllerComputePickRay();
|
||||||
|
|
Loading…
Reference in a new issue