summaryrefslogtreecommitdiff
path: root/world/src/mesh.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-08 00:01:07 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-08 00:01:07 +0100
commit7e06efee8b33fb8619aa5e50afc8728fd330f39d (patch)
treedb8ffedb2d52d74438c104be731966d6507ed968 /world/src/mesh.rs
parent30ef8aeb1fdf7f3686442d758ee77874aa29d53e (diff)
downloadweareserver-7e06efee8b33fb8619aa5e50afc8728fd330f39d.tar
weareserver-7e06efee8b33fb8619aa5e50afc8728fd330f39d.tar.bz2
weareserver-7e06efee8b33fb8619aa5e50afc8728fd330f39d.tar.zst
fix image ser bug
Diffstat (limited to 'world/src/mesh.rs')
-rw-r--r--world/src/mesh.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/world/src/mesh.rs b/world/src/mesh.rs
index cbc33c0..8742fb7 100644
--- a/world/src/mesh.rs
+++ b/world/src/mesh.rs
@@ -32,6 +32,7 @@ pub fn import_mesh(
path_base: &Path,
node: &Node,
prefab: &mut Prefab,
+ webp: bool,
) -> Result<()> {
Ok(for p in mesh.primitives() {
let reader = p.reader(|buf| Some(&buffers[buf.index()]));
@@ -151,6 +152,7 @@ pub fn import_mesh(
path_base,
&buffers,
&tex.texture().source().source(),
+ webp,
)?;
tex_albedo = Some(r.clone());
tex_transmission = Some(r.clone());
@@ -163,6 +165,7 @@ pub fn import_mesh(
path_base,
&buffers,
&tex.texture().source().source(),
+ webp,
)?);
}
let mut tex_emission = None;
@@ -173,6 +176,7 @@ pub fn import_mesh(
path_base,
&buffers,
&tex.texture().source().source(),
+ webp,
)?);
}
let mut tex_roughness = None;
@@ -188,6 +192,7 @@ pub fn import_mesh(
path_base,
&buffers,
&tex.texture().source().source(),
+ webp,
)?;
tex_roughness = Some(r.clone());
tex_metallic = Some(r.clone());