mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 05:56:56 +02:00
don't accidently select entities through edit.js window
This commit is contained in:
parent
e6a1c14de6
commit
b48270c9a7
1 changed files with 3 additions and 1 deletions
|
@ -1029,7 +1029,9 @@ SelectionDisplay = (function() {
|
|||
var entityIntersection = Entities.findRayIntersection(pickRay, true);
|
||||
var overlayIntersection = Overlays.findRayIntersection(pickRay);
|
||||
if (entityIntersection.intersects &&
|
||||
(!overlayIntersection.intersects || (entityIntersection.distance < overlayIntersection.distance))) {
|
||||
(!overlayIntersection.intersects ||
|
||||
(entityIntersection.distance < overlayIntersection.distance)) &&
|
||||
(!(Reticle.pointingAtSystemOverlay || Overlays.getOverlayAtPoint(Reticle.position)))) {
|
||||
selectionManager.setSelections([entityIntersection.entityID]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue