Skip to content

Commit

Permalink
Merge pull request #40989 from madmiraal/fix-40739
Browse files Browse the repository at this point in the history
Reload Bullet space override modifier even when RigidBody is inactive.
  • Loading branch information
AndreaCatania authored Aug 5, 2020
2 parents 8de57bd + 3a05ca9 commit 6831da6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/bullet/rigid_body_bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6831da6

Please sign in to comment.