diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-11 00:18:11 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-11 00:18:11 +0100 |
commit | 81a191e702abcf77b73b9163ce43c4527a01ce13 (patch) | |
tree | 1f0d0dfbea037a11e041295a0dea22f0c5a67a72 /shared | |
parent | 847542d358e65ea850cfeebdd92218aa60e34261 (diff) | |
download | weareserver-81a191e702abcf77b73b9163ce43c4527a01ce13.tar weareserver-81a191e702abcf77b73b9163ce43c4527a01ce13.tar.bz2 weareserver-81a191e702abcf77b73b9163ce43c4527a01ce13.tar.zst |
rushed implementation of VRM thirdPersonOnly
Diffstat (limited to 'shared')
-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 4cfc6fa..66ecf7a 100644 --- a/shared/src/resources.rs +++ b/shared/src/resources.rs @@ -87,6 +87,7 @@ pub struct MeshPart { pub tex_occlusion: Option<Resource<Image<'static>>>, pub hint_mirror: Option<()>, pub hint_static: Option<()>, + pub hint_hide_first_person: Option<()>, } #[derive(Debug, Default, Clone)] @@ -303,6 +304,7 @@ impl ReadWrite for MeshPart { 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)?; + write_kv_opt(w, b"hint_hide_first_person", &self.hint_hide_first_person)?; Ok(()) } fn read(r: &mut dyn Read) -> Result<Self> { @@ -341,6 +343,7 @@ impl ReadWrite for MeshPart { 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)?)), + b"hint_hide_first_person" => Ok(s.hint_hide_first_person = Some(read_slice(v)?)), x => Ok(warn!( "unknown mesh part key: {:?}", String::from_utf8_lossy(x) |