mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
Fix for player collision cleanup issue
This commit is contained in:
parent
6555ee8d80
commit
8b3054aa8b
1 changed files with 2 additions and 0 deletions
|
@ -2107,6 +2107,7 @@ namespace MWWorld
|
|||
{
|
||||
// Remove the old CharacterController
|
||||
MWBase::Environment::get().getMechanicsManager()->remove(getPlayerPtr());
|
||||
mPhysics->remove(getPlayerPtr());
|
||||
|
||||
mPlayer->set(player);
|
||||
}
|
||||
|
@ -2128,6 +2129,7 @@ namespace MWWorld
|
|||
|
||||
std::string model = getPlayerPtr().getClass().getModel(getPlayerPtr());
|
||||
model = Misc::ResourceHelpers::correctActorModelPath(model, mResourceSystem->getVFS());
|
||||
mPhysics->remove(getPlayerPtr());
|
||||
mPhysics->addActor(getPlayerPtr(), model);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue