File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ fn update_lightmaps(
257257 }
258258
259259 // Lightmap exposure defaults to zero, so we need to set it.
260- if let Some ( ref mut material) = materials. get_mut ( material) {
260+ if let Some ( ref mut material) = materials. get_cloned_mut ( material) {
261261 material. lightmap_exposure = LIGHTMAP_EXPOSURE ;
262262 }
263263
@@ -280,7 +280,7 @@ fn update_lightmaps(
280280 // Add lightmaps to or remove lightmaps from the sphere.
281281 if & * * name == "Sphere" {
282282 // Lightmap exposure defaults to zero, so we need to set it.
283- if let Some ( ref mut material) = materials. get_mut ( material) {
283+ if let Some ( ref mut material) = materials. get_cloned_mut ( material) {
284284 material. lightmap_exposure = LIGHTMAP_EXPOSURE ;
285285 }
286286
You can’t perform that action at this time.
0 commit comments