summaryrefslogtreecommitdiff
path: root/scene/resources/shape.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-21 20:34:34 +0200
committerGitHub <noreply@github.com>2019-04-21 20:34:34 +0200
commit33b69340ad262c4628da58edd61a3211497be911 (patch)
tree665d8796b04338b318fab6473149ac7160a15e89 /scene/resources/shape.cpp
parentc66ed35004a264b507d2fc85d2a7f2a15344f421 (diff)
parente5f531620e69ef682353e4d93c8ddd6cb43921ba (diff)
Merge pull request #27219 from raphael10241024/debug_fix
Fix collider debug shape didn't changes with collider size changes
Diffstat (limited to 'scene/resources/shape.cpp')
-rw-r--r--scene/resources/shape.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/shape.cpp b/scene/resources/shape.cpp
index 825b7f4c8b..6ba46f066c 100644
--- a/scene/resources/shape.cpp
+++ b/scene/resources/shape.cpp
@@ -96,6 +96,11 @@ Ref<ArrayMesh> Shape::get_debug_mesh() {
return debug_mesh_cache;
}
+void Shape::_update_shape() {
+ emit_changed();
+ debug_mesh_cache.unref();
+}
+
void Shape::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_margin", "margin"), &Shape::set_margin);