Skip to content

Commit

Permalink
Merge pull request #97130 from Rindbee/check-space-in-remove_soft_bod…
Browse files Browse the repository at this point in the history
…y_from_query

Add forgotten `get_space()` check in `GodotArea3D::remove_soft_body_from_query()`
  • Loading branch information
akien-mga committed Sep 18, 2024
2 parents 21134e1 + 2f515d6 commit 3abff94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/physics_3d/godot_area_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void GodotArea3D::add_soft_body_to_query(GodotSoftBody3D *p_soft_body, uint32_t
void GodotArea3D::remove_soft_body_from_query(GodotSoftBody3D *p_soft_body, uint32_t p_soft_body_shape, uint32_t p_area_shape) {
BodyKey bk(p_soft_body, p_soft_body_shape, p_area_shape);
monitored_soft_bodies[bk].dec();
if (!monitor_query_list.in_list()) {
if (get_space() && !monitor_query_list.in_list()) {
_queue_monitor_update();
}
}
Expand Down

0 comments on commit 3abff94

Please sign in to comment.