mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
IT'S WORKING SOB SOB SOB
This commit is contained in:
parent
39cb0bc357
commit
8a7561d61b
2 changed files with 5 additions and 5 deletions
|
@ -153,7 +153,10 @@ bool ContextOverlayInterface::createOrDestroyContextOverlay(const EntityItemID&
|
|||
return true;
|
||||
}
|
||||
} else {
|
||||
return destroyContextOverlay(entityItemID, event);
|
||||
if (!_currentEntityWithContextOverlay.isNull()) {
|
||||
return destroyContextOverlay(_currentEntityWithContextOverlay, event);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -166,9 +169,7 @@ bool ContextOverlayInterface::contextOverlayFilterPassed(const EntityItemID& ent
|
|||
bool ContextOverlayInterface::destroyContextOverlay(const EntityItemID& entityItemID, const PointerEvent& event) {
|
||||
if (_contextOverlayID != UNKNOWN_OVERLAY_ID) {
|
||||
qCDebug(context_overlay) << "Destroying Context Overlay on top of entity with ID: " << entityItemID;
|
||||
if (!_currentEntityWithContextOverlay.isNull() && _currentEntityWithContextOverlay != entityItemID) {
|
||||
disableEntityHighlight(_currentEntityWithContextOverlay);
|
||||
}
|
||||
disableEntityHighlight(entityItemID);
|
||||
setCurrentEntityWithContextOverlay(QUuid());
|
||||
_entityMarketplaceID.clear();
|
||||
// Destroy the Context Overlay
|
||||
|
|
|
@ -2246,7 +2246,6 @@ function MyController(hand) {
|
|||
button: "None"
|
||||
};
|
||||
if (rayPickInfo.entityID) {
|
||||
print("ZRF: " + hoveredEntityID);
|
||||
if (hoveredEntityID !== rayPickInfo.entityID) {
|
||||
if (contextOverlayTimer) {
|
||||
Script.clearTimeout(contextOverlayTimer);
|
||||
|
|
Loading…
Reference in a new issue