mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:17:35 +02:00
Set parentID even when overlay already exists
This commit is contained in:
parent
9c0026bf69
commit
7d125f44e4
1 changed files with 1 additions and 1 deletions
|
@ -58,9 +58,9 @@ bool ContextOverlayInterface::createOrDestroyContextOverlay(const EntityItemID&
|
||||||
_bbOverlay->setColor(BB_OVERLAY_COLOR);
|
_bbOverlay->setColor(BB_OVERLAY_COLOR);
|
||||||
_bbOverlay->setDrawInFront(true);
|
_bbOverlay->setDrawInFront(true);
|
||||||
_bbOverlay->setIgnoreRayIntersection(true);
|
_bbOverlay->setIgnoreRayIntersection(true);
|
||||||
_bbOverlay->setParentID(entityItemID);
|
|
||||||
_bbOverlayID = qApp->getOverlays().addOverlay(_bbOverlay);
|
_bbOverlayID = qApp->getOverlays().addOverlay(_bbOverlay);
|
||||||
}
|
}
|
||||||
|
_bbOverlay->setParentID(entityItemID);
|
||||||
_bbOverlay->setDimensions(entityProperties.getDimensions());
|
_bbOverlay->setDimensions(entityProperties.getDimensions());
|
||||||
_bbOverlay->setRotation(entityProperties.getRotation());
|
_bbOverlay->setRotation(entityProperties.getRotation());
|
||||||
_bbOverlay->setPosition(bbPosition);
|
_bbOverlay->setPosition(bbPosition);
|
||||||
|
|
Loading…
Reference in a new issue