test(editor): satisfy strict thumbnail cache lint
CI / Format, lint, test, build (push) Has been cancelled
CI / Format, lint, test, build (push) Has been cancelled
This commit is contained in:
1 parent
cadb37341d
commit
634ec16c5e
1 file changed
+4
-2
@@ -633,8 +633,10 @@ mod tests {
|
|||||||
fs::create_dir_all(texture_path.parent().unwrap()).unwrap();
|
fs::create_dir_all(texture_path.parent().unwrap()).unwrap();
|
||||||
fs::write(&material_path, b"material").unwrap();
|
fs::write(&material_path, b"material").unwrap();
|
||||||
fs::write(&texture_path, b"first pixels").unwrap();
|
fs::write(&texture_path, b"first pixels").unwrap();
|
||||||
let mut material = shared::MaterialDesc::default();
|
let material = shared::MaterialDesc {
|
||||||
material.base_color_texture = Some("assets/textures/albedo.png".into());
|
base_color_texture: Some("assets/textures/albedo.png".into()),
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
let source = ThumbnailJobSource::MaterialAsset {
|
let source = ThumbnailJobSource::MaterialAsset {
|
||||||
source_path: "assets/materials/test.material.ron".into(),
|
source_path: "assets/materials/test.material.ron".into(),
|
||||||
label: "Test".into(),
|
label: "Test".into(),
|
||||||
|
|||||||
Reference in new issue
Block a user