From 3a05ca9c2bdd90e04697dc17649f838c9d1f62b9 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 5c1144b8759..32c3240a357 100644 --- a/modules/bullet/rigid_body_bullet.cpp +++ b/modules/bullet/rigid_body_bullet.cpp @@ -897,8 +897,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() && PhysicsServer3D::BODY_MODE_KINEMATIC != mode) { + if (mode == PhysicsServer3D::BODY_MODE_STATIC) { return; }