summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndreaCatania <info@andreacatania.com>2017-11-23 01:25:29 +0100
committerAndreaCatania <info@andreacatania.com>2017-11-23 01:26:49 +0100
commit8de4df3fe2e95541f13f6ae84f8b8091387e8f31 (patch)
tree66cc0fdc5160d20003f238fd74b79ccc75cc5d74 /modules
parent20b07a1fb55c31d326c3f9c36d1276eb1bcf15e6 (diff)
Space override scratching when body is add to world
Fixes #13182
Diffstat (limited to 'modules')
-rw-r--r--modules/bullet/space_bullet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp
index 853906063b..3fe585c9e0 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();
}
}