mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 12:04:03 +02:00
don't do hand-controller edit object-selection when pointed at a HUD
element
This commit is contained in:
parent
46e57f7773
commit
03a8af76e3
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