diff --git a/crates/viewer/re_space_view_spatial/src/mesh_loader.rs b/crates/viewer/re_space_view_spatial/src/mesh_loader.rs index f2d8e78358f1..5b4c3c594131 100644 --- a/crates/viewer/re_space_view_spatial/src/mesh_loader.rs +++ b/crates/viewer/re_space_view_spatial/src/mesh_loader.rs @@ -55,7 +55,9 @@ impl LoadedMesh { // Overwriting albedo_factor of CpuMesh if specified in the Asset3D if let Some(albedo_factor) = albedo_factor { for instance in &cpu_model.instances { - cpu_model.meshes[instance.mesh].materials[0].albedo_factor = albedo_factor.0.into(); + for material in &mut cpu_model.meshes[instance.mesh].materials { + material.albedo_factor = albedo_factor.0.into(); + } } }