Merge pull request #96607 from smix8/navmesh_2d_disco_party

Fix 2D debug navigation flickering with tile maps
This commit is contained in:
Rémi Verschelde 2024-09-05 17:44:44 +02:00
commit a466519603
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -452,6 +452,7 @@ void NavigationRegion2D::_update_debug_mesh() {
const Transform2D region_gt = get_global_transform();
rs->canvas_item_set_parent(debug_instance_rid, get_world_2d()->get_canvas());
rs->canvas_item_set_z_index(debug_instance_rid, RS::CANVAS_ITEM_Z_MAX - 2);
rs->canvas_item_set_transform(debug_instance_rid, region_gt);
if (!debug_mesh_dirty) {