mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
refresh area2d collision when shape changes, close #33369
This commit is contained in:
parent
14e52f7aee
commit
8330e70e2c
@ -46,6 +46,9 @@ AreaSW::BodyKey::BodyKey(AreaSW *p_body, uint32_t p_body_shape, uint32_t p_area_
|
||||
}
|
||||
|
||||
void AreaSW::_shapes_changed() {
|
||||
|
||||
if (!moved_list.in_list() && get_space())
|
||||
get_space()->area_add_to_moved_list(&moved_list);
|
||||
}
|
||||
|
||||
void AreaSW::set_transform(const Transform &p_transform) {
|
||||
|
@ -46,6 +46,9 @@ Area2DSW::BodyKey::BodyKey(Area2DSW *p_body, uint32_t p_body_shape, uint32_t p_a
|
||||
}
|
||||
|
||||
void Area2DSW::_shapes_changed() {
|
||||
|
||||
if (!moved_list.in_list() && get_space())
|
||||
get_space()->area_add_to_moved_list(&moved_list);
|
||||
}
|
||||
|
||||
void Area2DSW::set_transform(const Transform2D &p_transform) {
|
||||
|
Loading…
Reference in New Issue
Block a user