mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add forgotten get_space() check in GodotArea3D::remove_soft_body_from_query()
My fault, I added a `get_space()` check for the other `GodotArea3D::remove_*_from_query()` but forgot about `soft_body`.
This commit is contained in:
parent
922ae7e7b5
commit
2f515d6a27
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
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);
|
BodyKey bk(p_soft_body, p_soft_body_shape, p_area_shape);
|
||||||
monitored_soft_bodies[bk].dec();
|
monitored_soft_bodies[bk].dec();
|
||||||
if (!monitor_query_list.in_list()) {
|
if (get_space() && !monitor_query_list.in_list()) {
|
||||||
_queue_monitor_update();
|
_queue_monitor_update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue