We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mixed_lighting
get_cloned_mut
1 parent 2ed2094 commit 9289a07Copy full SHA for 9289a07
examples/3d/mixed_lighting.rs
@@ -257,7 +257,7 @@ fn update_lightmaps(
257
}
258
259
// Lightmap exposure defaults to zero, so we need to set it.
260
- if let Some(ref mut material) = materials.get_mut(material) {
+ if let Some(ref mut material) = materials.get_cloned_mut(material) {
261
material.lightmap_exposure = LIGHTMAP_EXPOSURE;
262
263
@@ -279,7 +279,7 @@ fn update_lightmaps(
279
// Add lightmaps to or remove lightmaps from the sphere.
280
if &**name == "Sphere" {
281
282
283
284
285
0 commit comments