From 44c9f834da5714e94036ea743141e2f1c16b6c0c Mon Sep 17 00:00:00 2001 From: genusistimelord Date: Fri, 17 May 2024 09:35:53 -0400 Subject: [PATCH] Make y before x to fix y offsets --- graphics/src/systems/draw_order.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/src/systems/draw_order.rs b/graphics/src/systems/draw_order.rs index fe6adf7..b2e5bde 100644 --- a/graphics/src/systems/draw_order.rs +++ b/graphics/src/systems/draw_order.rs @@ -32,8 +32,8 @@ impl Ord for DrawOrder { self.layer .cmp(&other.layer) .then(self.alpha.cmp(&other.alpha)) - .then(self.x.cmp(&other.x)) .then(self.y.cmp(&other.y).reverse()) + .then(self.x.cmp(&other.x)) .then(self.z.cmp(&other.z).reverse()) } }