Skip to content

Commit 5a91f27

Browse files
committed
Fix Z ordering of transparent extruded outlines.
1 parent 7127dd2 commit 5a91f27

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/node.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::cmp::Reverse;
21
use std::ops::Range;
32

43
use bevy::ecs::query::QueryItem;
@@ -211,10 +210,10 @@ impl PhaseItem for TransparentOutline {
211210
}
212211

213212
impl SortedPhaseItem for TransparentOutline {
214-
type SortKey = Reverse<FloatOrd>;
213+
type SortKey = FloatOrd;
215214

216215
fn sort_key(&self) -> Self::SortKey {
217-
Reverse(FloatOrd(self.distance))
216+
FloatOrd(self.distance)
218217
}
219218
}
220219

0 commit comments

Comments
 (0)