summaryrefslogtreecommitdiff
path: root/shared/src/resources.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-21 23:03:37 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-21 23:03:37 +0100
commit13eb6abfe0e766e432a2f08d58fa9f5a6c5026e7 (patch)
treefd82c7e200cb7ccef437c596e5d537cae96303c5 /shared/src/resources.rs
parenta3621790a6f4466daab0f38f5eaf57fe064b2e92 (diff)
downloadweareserver-13eb6abfe0e766e432a2f08d58fa9f5a6c5026e7.tar
weareserver-13eb6abfe0e766e432a2f08d58fa9f5a6c5026e7.tar.bz2
weareserver-13eb6abfe0e766e432a2f08d58fa9f5a6c5026e7.tar.zst
hint_static
Diffstat (limited to 'shared/src/resources.rs')
-rw-r--r--shared/src/resources.rs3
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)