mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Fix collider debug shape didn't changes with collider size changes
This commit is contained in:
committed by
RaphaelHunter
parent
5772f60f96
commit
e5f531620e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user