From 075d8b2466b3db5b990389f67e9b59d6b40150c4 Mon Sep 17 00:00:00 2001 From: Crimzoth <60625668+Crimzoth@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:01:16 +0200 Subject: [PATCH] Fix: Mass not set properly for RigidBody3D Removed erroneous check, which caused _inv_mass not to be calculated when RigidBody3D used both custom center of mass and custom inertia. --- servers/physics_3d/godot_body_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/physics_3d/godot_body_3d.cpp b/servers/physics_3d/godot_body_3d.cpp index 3c93fee4f8373a..d35f16f3ae45dd 100644 --- a/servers/physics_3d/godot_body_3d.cpp +++ b/servers/physics_3d/godot_body_3d.cpp @@ -35,7 +35,7 @@ #include "godot_space_3d.h" void GodotBody3D::_mass_properties_changed() { - if (get_space() && !mass_properties_update_list.in_list() && (calculate_inertia || calculate_center_of_mass)) { + if (get_space() && !mass_properties_update_list.in_list()) { get_space()->body_add_to_mass_properties_update_list(&mass_properties_update_list); } }