mirror of https://github.com/godotengine/godot
Reload Bullet space override modifier even when RigidBody is inactive.
This commit is contained in:
parent
23b553ba06
commit
c1290280ac
|
|
@ -906,8 +906,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue