Fix collider debug shape didn't changes with collider size changes

This commit is contained in:
yakun.zhang
2019-03-19 11:53:37 +08:00
committed by RaphaelHunter
parent 5772f60f96
commit e5f531620e
12 changed files with 39 additions and 10 deletions

View File

@@ -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);