forked from teamnwah/openmw-tes3coop
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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue