diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-02-19 18:22:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 18:22:21 +0100 |
commit | d9f26af533c40326f8f528e0ac5613053cccb4c5 (patch) | |
tree | de7ae3622ccddcff8874cc10b1e3ce6abfd1ebc1 | |
parent | b2bdfaded3b4c75458bcf855f75cf49e09d07508 (diff) | |
parent | 3659df6624861903456943cb17efd94ace6f2b5f (diff) |
Merge pull request #16803 from lethiandev/fix-remove-shape2d
Fix 2d collision body update on shape remove
-rw-r--r-- | servers/physics_2d/collision_object_2d_sw.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/physics_2d/collision_object_2d_sw.cpp b/servers/physics_2d/collision_object_2d_sw.cpp index 80cdd58aeb..ce06aa9a2b 100644 --- a/servers/physics_2d/collision_object_2d_sw.cpp +++ b/servers/physics_2d/collision_object_2d_sw.cpp @@ -100,6 +100,7 @@ void CollisionObject2DSW::remove_shape(int p_index) { shapes[p_index].shape->remove_owner(this); shapes.remove(p_index); + _update_shapes(); _shapes_changed(); } |