mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
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:
parent
701767a617
commit
73457665ba
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue