From 3659df6624861903456943cb17efd94ace6f2b5f Mon Sep 17 00:00:00 2001 From: Konrad Nowakowski Date: Sun, 18 Feb 2018 20:41:54 +0000 Subject: [PATCH] Fix 2d collision body update on shape remove --- servers/physics_2d/collision_object_2d_sw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/physics_2d/collision_object_2d_sw.cpp b/servers/physics_2d/collision_object_2d_sw.cpp index 80cdd58aeb7..ce06aa9a2be 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(); }