Fix NavigationRegion2D debug not clearing canvas item

Fixes NavigationRegion2D debug not clearing canvas item on navigation mesh change.
This commit is contained in:
smix8 2024-06-10 19:07:57 +02:00
parent 5241d30bfa
commit 6b85bc9de2
1 changed files with 1 additions and 0 deletions

View File

@ -458,6 +458,7 @@ void NavigationRegion2D::_update_debug_mesh() {
return;
}
rs->canvas_item_clear(debug_instance_rid);
rs->mesh_clear(debug_mesh_rid);
debug_mesh_dirty = false;