mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
unlock after character is properly updated
This commit is contained in:
parent
9b13f186e3
commit
c6b34df06c
1 changed files with 2 additions and 4 deletions
|
@ -624,11 +624,9 @@ void PhysicsEngine::setCharacterController(CharacterController* character) {
|
|||
_characterController->setDynamicsWorld(NULL);
|
||||
_characterController = NULL;
|
||||
}
|
||||
// the character will be added to the DynamicsWorld later
|
||||
_characterController = character;
|
||||
unlock();
|
||||
if (character) {
|
||||
// the character will be added to the DynamicsWorld later
|
||||
_characterController = character;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue