Browse Source

Merge pull request #40990 from madmiraal/fix-40739-3.2

[3.2] Reload Bullet space override modifier even when RigidBody is inactive.
Rémi Verschelde 4 years ago
parent
commit
8a8e0ae2eb
1 changed files with 1 additions and 2 deletions
  1. 1 2
      modules/bullet/rigid_body_bullet.cpp

+ 1 - 2
modules/bullet/rigid_body_bullet.cpp

@@ -892,8 +892,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);