From 6c4209d4cb3c5a1d6805bd75a133f3dc28ccc087 Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Mon, 11 Nov 2024 23:20:17 -0800 Subject: [PATCH] minor v2019 fixes --- rust/src/unity/types/binary.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/src/unity/types/binary.rs b/rust/src/unity/types/binary.rs index 39914c781..bbb39b8b2 100644 --- a/rust/src/unity/types/binary.rs +++ b/rust/src/unity/types/binary.rs @@ -304,6 +304,7 @@ pub struct Texture2D { #[deku(count = "(4 - deku::byte_offset % 4) % 4")] _alignment0: Vec, pub forced_fallback_format: i32, pub downscale_fallback: u8, + #[deku(cond = "version >= UnityVersion::V2020_3_16f1")] pub is_alpha_channel_optional: u8, #[deku(count = "(4 - deku::byte_offset % 4) % 4")] _alignment1: Vec, pub width: i32,