Fix NavigationRegion2D debug not clearing canvas item
Fixes NavigationRegion2D debug not clearing canvas item on navigation mesh change.
This commit is contained in:
parent
5241d30bfa
commit
6b85bc9de2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue