Skip to content

Commit

Permalink
Update godot_body_3d.cpp
Browse files Browse the repository at this point in the history
Removed erroneous check, which caused _inv_mass not to be calculated when RigidBody3D used both custom center of mass and custom inertia.
  • Loading branch information
Crimzoth committed Jun 27, 2023
1 parent 1b3bf48 commit 801a537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/physics_3d/godot_body_3d.cpp
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 801a537

Please sign in to comment.