mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 11:54:20 +02:00
Fix MS16480: Disable active ContextOverlays when disabling ContextOverlayInterface
This commit is contained in:
parent
d4f43a56f2
commit
01eb3eddab
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ static const float CONTEXT_OVERLAY_UNHOVERED_COLORPULSE = 1.0f;
|
|||
|
||||
void ContextOverlayInterface::setEnabled(bool enabled) {
|
||||
_enabled = enabled;
|
||||
if (!enabled) {
|
||||
// Destroy any potentially-active ContextOverlays when disabling the interface
|
||||
createOrDestroyContextOverlay(EntityItemID(), PointerEvent());
|
||||
}
|
||||
}
|
||||
|
||||
void ContextOverlayInterface::clickDownOnEntity(const EntityItemID& entityItemID, const PointerEvent& event) {
|
||||
|
|
Loading…
Reference in a new issue