From 13eb6abfe0e766e432a2f08d58fa9f5a6c5026e7 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 21 Jan 2025 23:03:37 +0100 Subject: hint_static --- shared/src/resources.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared') diff --git a/shared/src/resources.rs b/shared/src/resources.rs index 5901eb1..6c71adc 100644 --- a/shared/src/resources.rs +++ b/shared/src/resources.rs @@ -85,6 +85,7 @@ pub struct MeshPart { pub tex_thickness: Option>>, pub tex_occlusion: Option>>, pub hint_mirror: Option<()>, + pub hint_static: Option<()>, } #[derive(Debug, Default, Clone)] @@ -292,6 +293,7 @@ impl ReadWrite for MeshPart { write_kv_opt(w, b"tex_emission", &self.tex_emission)?; write_kv_opt(w, b"tex_occlusion", &self.tex_occlusion)?; write_kv_opt(w, b"hint_mirror", &self.hint_mirror)?; + write_kv_opt(w, b"hint_static", &self.hint_static)?; Ok(()) } fn read(r: &mut dyn Read) -> Result { @@ -328,6 +330,7 @@ impl ReadWrite for MeshPart { b"tex_emission" => Ok(s.tex_emission = Some(read_slice(v)?)), b"tex_occlusion" => Ok(s.tex_occlusion = Some(read_slice(v)?)), b"hint_mirror" => Ok(s.hint_mirror = Some(read_slice(v)?)), + b"hint_static" => Ok(s.hint_static = Some(read_slice(v)?)), x => Ok(warn!( "unknown mesh part key: {:?}", String::from_utf8_lossy(x) -- cgit v1.2.3-70-g09d2