diff --git a/crates/editor/src/assets/thumbnails/disk_cache.rs b/crates/editor/src/assets/thumbnails/disk_cache.rs index 0cf8212..c71cd38 100644 --- a/crates/editor/src/assets/thumbnails/disk_cache.rs +++ b/crates/editor/src/assets/thumbnails/disk_cache.rs @@ -633,8 +633,10 @@ mod tests { fs::create_dir_all(texture_path.parent().unwrap()).unwrap(); fs::write(&material_path, b"material").unwrap(); fs::write(&texture_path, b"first pixels").unwrap(); - let mut material = shared::MaterialDesc::default(); - material.base_color_texture = Some("assets/textures/albedo.png".into()); + let material = shared::MaterialDesc { + base_color_texture: Some("assets/textures/albedo.png".into()), + ..Default::default() + }; let source = ThumbnailJobSource::MaterialAsset { source_path: "assets/materials/test.material.ron".into(), label: "Test".into(),