mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 03:48:44 +02:00
no clicks on 'highlight' overlay
This commit is contained in:
parent
0023832938
commit
b236a21adc
1 changed files with 1 additions and 2 deletions
|
@ -49,7 +49,6 @@ void ContextOverlayInterface::createOrDestroyContextOverlay(const EntityItemID&
|
||||||
_bbOverlay->setIsSolid(false);
|
_bbOverlay->setIsSolid(false);
|
||||||
_bbOverlay->setColor(BB_OVERLAY_COLOR);
|
_bbOverlay->setColor(BB_OVERLAY_COLOR);
|
||||||
_bbOverlay->setDrawInFront(true);
|
_bbOverlay->setDrawInFront(true);
|
||||||
_bbOverlay->setIgnoreRayIntersection(false);
|
|
||||||
_bbOverlayID = qApp->getOverlays().addOverlay(_bbOverlay);
|
_bbOverlayID = qApp->getOverlays().addOverlay(_bbOverlay);
|
||||||
}
|
}
|
||||||
_bbOverlay->setDimensions(entityProperties.getDimensions());
|
_bbOverlay->setDimensions(entityProperties.getDimensions());
|
||||||
|
@ -98,7 +97,7 @@ void ContextOverlayInterface::destroyContextOverlay(const EntityItemID& entityIt
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContextOverlayInterface::clickContextOverlay(const OverlayID& overlayID, const PointerEvent& event) {
|
void ContextOverlayInterface::clickContextOverlay(const OverlayID& overlayID, const PointerEvent& event) {
|
||||||
if ((overlayID == _contextOverlayID || overlayID == _bbOverlayID) && event.getButton() == PointerEvent::PrimaryButton) {
|
if (overlayID == _contextOverlayID && event.getButton() == PointerEvent::PrimaryButton) {
|
||||||
qCDebug(context_overlay) << "Clicked Context Overlay. Entity ID:" << _currentEntityWithContextOverlay << "Overlay ID:" << overlayID;
|
qCDebug(context_overlay) << "Clicked Context Overlay. Entity ID:" << _currentEntityWithContextOverlay << "Overlay ID:" << overlayID;
|
||||||
openMarketplace();
|
openMarketplace();
|
||||||
destroyContextOverlay(_currentEntityWithContextOverlay, PointerEvent());
|
destroyContextOverlay(_currentEntityWithContextOverlay, PointerEvent());
|
||||||
|
|
Loading…
Reference in a new issue