mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 03:27:24 +02:00
entity icons ignorePickIntersection when not visible
This commit is contained in:
parent
367c4cffee
commit
2bb522eea6
1 changed files with 5 additions and 2 deletions
|
@ -64,7 +64,8 @@ EntityIconOverlayManager = function(entityTypes, getOverlayPropertiesFunc) {
|
||||||
visible = isVisible;
|
visible = isVisible;
|
||||||
for (var id in entityOverlays) {
|
for (var id in entityOverlays) {
|
||||||
Overlays.editOverlay(entityOverlays[id], {
|
Overlays.editOverlay(entityOverlays[id], {
|
||||||
visible: visible
|
visible: visible,
|
||||||
|
ignorePickIntersection: !visible
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +86,8 @@ EntityIconOverlayManager = function(entityTypes, getOverlayPropertiesFunc) {
|
||||||
function releaseOverlay(overlay) {
|
function releaseOverlay(overlay) {
|
||||||
unusedOverlays.push(overlay);
|
unusedOverlays.push(overlay);
|
||||||
Overlays.editOverlay(overlay, {
|
Overlays.editOverlay(overlay, {
|
||||||
visible: false
|
visible: false,
|
||||||
|
ignorePickIntersection: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +101,7 @@ EntityIconOverlayManager = function(entityTypes, getOverlayPropertiesFunc) {
|
||||||
position: properties.position,
|
position: properties.position,
|
||||||
rotation: Quat.fromPitchYawRollDegrees(0, 0, 270),
|
rotation: Quat.fromPitchYawRollDegrees(0, 0, 270),
|
||||||
visible: visible,
|
visible: visible,
|
||||||
|
ignorePickIntersection: !visible,
|
||||||
alpha: 0.9,
|
alpha: 0.9,
|
||||||
scale: 0.5,
|
scale: 0.5,
|
||||||
drawInFront: true,
|
drawInFront: true,
|
||||||
|
|
Loading…
Reference in a new issue