Merge pull request #13202 from AndreaCatania/master

Space override scratching when body is add to world
This commit is contained in:
Rémi Verschelde 2017-11-23 09:30:27 +01:00 committed by GitHub
commit 3fffe6ccb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}
}