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 862eb3a commit e4a6148Copy full SHA for e4a6148
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
@@ -280,7 +280,7 @@ fn update_lightmaps(
280
// Add lightmaps to or remove lightmaps from the sphere.
281
if &**name == "Sphere" {
282
283
284
285
286
0 commit comments