1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:53:51 +00:00

Fix tooltip position when hovering the crosshair over NPCs

This commit is contained in:
scrawl 2013-03-07 15:25:22 +01:00
parent 0ee0dbdb97
commit 66a754e9aa

View file

@ -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);