|
|
@ -1756,6 +1756,8 @@ namespace MWWorld
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void World::updateWindowManager ()
|
|
|
|
void World::updateWindowManager ()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// inform the GUI about focused object
|
|
|
|
// inform the GUI about focused object
|
|
|
|
MWWorld::Ptr object = getFacedObject ();
|
|
|
|
MWWorld::Ptr object = getFacedObject ();
|
|
|
@ -1771,6 +1773,11 @@ namespace MWWorld
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->setFocusObject(object);
|
|
|
|
MWBase::Environment::get().getWindowManager()->setFocusObject(object);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (std::exception& e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
std::cerr << "Error updating window manager: " << e.what() << std::endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MWWorld::Ptr World::getFacedObject(float maxDistance, bool ignorePlayer)
|
|
|
|
MWWorld::Ptr World::getFacedObject(float maxDistance, bool ignorePlayer)
|
|
|
|
{
|
|
|
|
{
|
|
|
|