From 4dacd2a58f778818d7c2f4d73980b0967c7202b4 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:21 +0100 Subject: fix(levels): fix invalid texture co-ords for vertices --- stockton-levels/src/traits/vertices.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stockton-levels/src/traits/vertices.rs b/stockton-levels/src/traits/vertices.rs index cea1806..7b14c98 100644 --- a/stockton-levels/src/traits/vertices.rs +++ b/stockton-levels/src/traits/vertices.rs @@ -42,8 +42,8 @@ impl TexCoord { /// Internal function. Converts a slice to a TexCoord. pub fn from_bytes(bytes: &[u8; 16]) -> TexCoord { TexCoord { - u: [slice_to_f32(&bytes[0..4]), slice_to_f32(&bytes[4..8])], - v: [slice_to_f32(&bytes[8..12]), slice_to_f32(&bytes[12..16])], + u: [slice_to_f32(&bytes[0..4]), slice_to_f32(&bytes[8..12])], + v: [slice_to_f32(&bytes[4..8]), slice_to_f32(&bytes[12..16])], } } } -- cgit v1.2.3