mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #40989 from madmiraal/fix-40739
Reload Bullet space override modifier even when RigidBody is inactive.
This commit is contained in:
commit
6831da630f
@ -897,8 +897,7 @@ void RigidBodyBullet::on_exit_area(AreaBullet *p_area) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RigidBodyBullet::reload_space_override_modificator() {
|
void RigidBodyBullet::reload_space_override_modificator() {
|
||||||
// Make sure that kinematic bodies have their total gravity calculated
|
if (mode == PhysicsServer3D::BODY_MODE_STATIC) {
|
||||||
if (!is_active() && PhysicsServer3D::BODY_MODE_KINEMATIC != mode) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user