Crash fix for avatars that are missing "Hips", "Head" and other required joints.

This commit is contained in:
Anthony J. Thibault 2017-08-04 11:19:09 -07:00
parent 732d0de48d
commit 85500841fb

View file

@ -36,7 +36,7 @@ MyCharacterController::~MyCharacterController() {
void MyCharacterController::setDynamicsWorld(btDynamicsWorld* world) {
CharacterController::setDynamicsWorld(world);
if (world) {
if (world && _rigidBody) {
initRayShotgun(world);
}
}