Skip to content

Commit cfb37d8

Browse files
committed
Fix the specular_tint example.
1 parent cb78e1b commit cfb37d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/3d/specular_tint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn shift_hue(
156156
app_status.hue += HUE_SHIFT_SPEED;
157157

158158
for material_handle in objects_with_materials.iter() {
159-
let Some(material) = standard_materials.get_mut(material_handle) else {
159+
let Some(material) = standard_materials.get_cloned_mut(material_handle) else {
160160
continue;
161161
};
162162
material.specular_tint = Color::hsva(app_status.hue, 1.0, 1.0, 1.0);

0 commit comments

Comments
 (0)