mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Fix tooltip position when hovering the crosshair over NPCs
This commit is contained in:
parent
0ee0dbdb97
commit
66a754e9aa
@ -996,13 +996,7 @@ namespace MWWorld
|
||||
if (!object.isEmpty ())
|
||||
{
|
||||
Ogre::SceneNode* node = object.getRefData().getBaseNode();
|
||||
Ogre::AxisAlignedBox bounds;
|
||||
int i;
|
||||
for (i=0; i<node->numAttachedObjects(); ++i)
|
||||
{
|
||||
Ogre::MovableObject* ob = node->getAttachedObject(i);
|
||||
bounds.merge(ob->getWorldBoundingBox());
|
||||
}
|
||||
Ogre::AxisAlignedBox bounds = node->_getWorldAABB();
|
||||
if (bounds.isFinite())
|
||||
{
|
||||
Vector4 screenCoords = mRendering->boundingBoxToScreen(bounds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user