Skip to content

Commit 8e37d87

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/3d/specular_tint.rs

Lines changed: 2 additions & 2 deletions
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);
@@ -195,7 +195,7 @@ fn toggle_specular_map(
195195
};
196196

197197
for material_handle in objects_with_materials.iter() {
198-
let Some(material) = standard_materials.get_mut(material_handle) else {
198+
let Some(material) = standard_materials.get_cloned_mut(material_handle) else {
199199
continue;
200200
};
201201

0 commit comments

Comments
 (0)