diff options
author | Konrad Nowakowski <konrad.x92@gmail.com> | 2018-02-18 20:41:54 +0000 |
---|---|---|
committer | Konrad Nowakowski <konrad.x92@gmail.com> | 2018-02-18 20:46:37 +0000 |
commit | 3659df6624861903456943cb17efd94ace6f2b5f (patch) | |
tree | 3c9a8b46f164bf50304a73f2191f871b64dd76e5 /servers | |
parent | 95f7879923783c3cbfc0a42cfd11e2b9d8260b46 (diff) |
Fix 2d collision body update on shape remove
Diffstat (limited to 'servers')
-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(); } |