diff options
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/resources.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<Resource<Image<'static>>>, pub tex_occlusion: Option<Resource<Image<'static>>>, 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<Self> { @@ -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) |