From 8de4df3fe2e95541f13f6ae84f8b8091387e8f31 Mon Sep 17 00:00:00 2001 From: AndreaCatania Date: Thu, 23 Nov 2017 01:25:29 +0100 Subject: [PATCH] Space override scratching when body is add to world Fixes #13182 --- modules/bullet/space_bullet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index 853906063b3..3fe585c9e03 100644 --- a/modules/bullet/space_bullet.cpp +++ b/modules/bullet/space_bullet.cpp @@ -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(); } }