mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Fix for player collision cleanup issue
This commit is contained in:
parent
6555ee8d80
commit
8b3054aa8b
@ -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…
x
Reference in New Issue
Block a user