aboutsummaryrefslogtreecommitdiff
path: root/servers/physics_2d/collision_object_2d_sw.cpp
diff options
context:
space:
mode:
authorKonrad Nowakowski2018-02-18 20:41:54 +0000
committerHein-Pieter van Braam2018-02-19 22:43:33 +0100
commita76dfe9c72cf3ab1ce2804059567b6d127769969 (patch)
treeefd66df8dfb17ecfb7fe5903dd2e4716c6dd3354 /servers/physics_2d/collision_object_2d_sw.cpp
parenta423adbee6fa9baa11ceb7a2eaf04d6b0de11826 (diff)
downloadgodot-a76dfe9c72cf3ab1ce2804059567b6d127769969.tar.gz
godot-a76dfe9c72cf3ab1ce2804059567b6d127769969.tar.zst
godot-a76dfe9c72cf3ab1ce2804059567b6d127769969.zip
Fix 2d collision body update on shape remove
(cherry picked from commit 3659df6624861903456943cb17efd94ace6f2b5f)
Diffstat (limited to '')
-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 80cdd58ae..ce06aa9a2 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();
}