Fix 2d collision body update on shape remove
(cherry picked from commit 3659df6624
)
This commit is contained in:
parent
a423adbee6
commit
a76dfe9c72
|
@ -100,6 +100,7 @@ void CollisionObject2DSW::remove_shape(int p_index) {
|
||||||
shapes[p_index].shape->remove_owner(this);
|
shapes[p_index].shape->remove_owner(this);
|
||||||
shapes.remove(p_index);
|
shapes.remove(p_index);
|
||||||
|
|
||||||
|
_update_shapes();
|
||||||
_shapes_changed();
|
_shapes_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue