summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-19 18:22:21 +0100
committerGitHub <noreply@github.com>2018-02-19 18:22:21 +0100
commitd9f26af533c40326f8f528e0ac5613053cccb4c5 (patch)
treede7ae3622ccddcff8874cc10b1e3ce6abfd1ebc1
parentb2bdfaded3b4c75458bcf855f75cf49e09d07508 (diff)
parent3659df6624861903456943cb17efd94ace6f2b5f (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.cpp1
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();
}