From c1290280ac98a68db163f26a74c1171e93bd52e8 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Mon, 3 Aug 2020 11:26:44 +0100 Subject: [PATCH] Reload Bullet space override modifier even when RigidBody is inactive. --- modules/bullet/rigid_body_bullet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp index f3e456fb97cd..031426886c68 100644 --- a/modules/bullet/rigid_body_bullet.cpp +++ b/modules/bullet/rigid_body_bullet.cpp @@ -906,8 +906,7 @@ void RigidBodyBullet::on_exit_area(AreaBullet *p_area) { } void RigidBodyBullet::reload_space_override_modificator() { - // Make sure that kinematic bodies have their total gravity calculated - if (!is_active() && PhysicsServer::BODY_MODE_KINEMATIC != mode) + if (mode == PhysicsServer::BODY_MODE_STATIC) return; Vector3 newGravity(0.0, 0.0, 0.0);