Space override scratching when body is add to world

Fixes #13182
This commit is contained in:
AndreaCatania 2017-11-23 01:25:29 +01:00
parent 20b07a1fb5
commit 8de4df3fe2

View file

@ -467,6 +467,7 @@ void SpaceBullet::add_rigid_body(RigidBodyBullet *p_body) {
dynamicsWorld->addCollisionObject(p_body->get_bt_rigid_body(), p_body->get_collision_layer(), p_body->get_collision_mask());
} else {
dynamicsWorld->addRigidBody(p_body->get_bt_rigid_body(), p_body->get_collision_layer(), p_body->get_collision_mask());
p_body->scratch_space_override_modificator();
}
}