Merge pull request #40989 from madmiraal/fix-40739

Reload Bullet space override modifier even when RigidBody is inactive.
This commit is contained in:
Andrea Catania 2020-08-05 13:54:25 +02:00 committed by GitHub
commit 6831da630f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}