mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
merge from upstream
This commit is contained in:
parent
2468b56079
commit
2e83f21844
1 changed files with 1 additions and 3 deletions
|
@ -1032,9 +1032,7 @@ SelectionDisplay = (function() {
|
|||
var entityIntersection = Entities.findRayIntersection(pickRay, true);
|
||||
var overlayIntersection = Overlays.findRayIntersection(pickRay);
|
||||
if (entityIntersection.intersects &&
|
||||
(!overlayIntersection.intersects ||
|
||||
(entityIntersection.distance < overlayIntersection.distance)) &&
|
||||
(!(Reticle.pointingAtSystemOverlay || Overlays.getOverlayAtPoint(Reticle.position)))) {
|
||||
(!overlayIntersection.intersects || (entityIntersection.distance < overlayIntersection.distance))) {
|
||||
selectionManager.setSelections([entityIntersection.entityID]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue