mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +00:00
Fix player Ptr in RenderingManager not being updated on cell changes
Noticed that 'setpos' wasn't working in the console with the player selected.
This commit is contained in:
parent
fcb815f2c7
commit
00034192dc
@ -530,8 +530,10 @@ namespace MWRender
|
||||
void RenderingManager::updatePlayerPtr(const MWWorld::Ptr &ptr)
|
||||
{
|
||||
if(mPlayerAnimation.get())
|
||||
{
|
||||
setupPlayer(ptr);
|
||||
mPlayerAnimation->updatePtr(ptr);
|
||||
|
||||
}
|
||||
mCamera->attachTo(ptr);
|
||||
}
|
||||
|
||||
@ -834,6 +836,7 @@ namespace MWRender
|
||||
|
||||
player.getRefData().setBaseNode(mPlayerNode);
|
||||
|
||||
mWater->removeEmitter(player);
|
||||
mWater->addEmitter(player);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user