mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 00:03:16 +02:00
Check if ContextOverlayInterface is enabled before highlighting
This commit is contained in:
parent
11dd4d2945
commit
81be62b6f7
1 changed files with 2 additions and 2 deletions
|
@ -237,13 +237,13 @@ void ContextOverlayInterface::contextOverlays_hoverLeaveOverlay(const OverlayID&
|
|||
}
|
||||
|
||||
void ContextOverlayInterface::contextOverlays_hoverEnterEntity(const EntityItemID& entityID, const PointerEvent& event) {
|
||||
if (contextOverlayFilterPassed(entityID)) {
|
||||
if (contextOverlayFilterPassed(entityID) && _enabled) {
|
||||
enableEntityHighlight(entityID);
|
||||
}
|
||||
}
|
||||
|
||||
void ContextOverlayInterface::contextOverlays_hoverLeaveEntity(const EntityItemID& entityID, const PointerEvent& event) {
|
||||
if (_currentEntityWithContextOverlay != entityID) {
|
||||
if (_currentEntityWithContextOverlay != entityID && _enabled) {
|
||||
disableEntityHighlight(entityID);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue