Fix gizmo draw order in 2D (#9129)

# Objective

Gizmos are intended to draw over everything but for some reason I set
the sort key to `0` during #8427 :v

I didn't catch this mistake because it still draws over sprites with a Z
translation of `0`.

## Solution

Set the sort key to `f32::INFINITY`.
This commit is contained in:
ira 2023-07-15 23:18:13 +02:00 committed by GitHub
parent 701767a617
commit 73457665ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ fn queue_line_gizmos_2d(
entity,
draw_function,
pipeline,
sort_key: FloatOrd(0.),
sort_key: FloatOrd(f32::INFINITY),
batch_range: None,
});
}