diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-08-03 11:26:44 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-08-03 11:39:16 +0100 |
commit | 3a05ca9c2bdd90e04697dc17649f838c9d1f62b9 (patch) | |
tree | fa048725cf22c6a9536d4a791051f79056963f0b /modules | |
parent | bc813fd0615cd4e43384fcd5403a32b139d60945 (diff) |
Reload Bullet space override modifier even when RigidBody is inactive.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/bullet/rigid_body_bullet.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp index 5c1144b875..32c3240a35 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; } |