|
@@ -35,7 +35,7 @@
|
|
#include "godot_space_2d.h"
|
|
#include "godot_space_2d.h"
|
|
|
|
|
|
void GodotBody2D::_mass_properties_changed() {
|
|
void GodotBody2D::_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);
|
|
get_space()->body_add_to_mass_properties_update_list(&mass_properties_update_list);
|
|
}
|
|
}
|
|
}
|
|
}
|