summaryrefslogtreecommitdiff
path: root/world/src/mesh.rs
diff options
context:
space:
mode:
Diffstat (limited to 'world/src/mesh.rs')
-rw-r--r--world/src/mesh.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/world/src/mesh.rs b/world/src/mesh.rs
index c5bbb7f..2c868ab 100644
--- a/world/src/mesh.rs
+++ b/world/src/mesh.rs
@@ -303,7 +303,13 @@ pub fn import_mesh(
let g_refractive_index = p.material().ior();
let g_thickness = p.material().volume().map(|v| v.thickness_factor());
+ let name = mesh.name().map(|e| e.to_owned());
+ if let Some(name) = &name {
+ info!("name is {name:?}");
+ }
+
let mesh = store.set(&MeshPart {
+ name,
index,
g_albedo,
g_alpha,