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
@@ -279,7 +279,7 @@ fn update_lightmaps(
279279 // Add lightmaps to or remove lightmaps from the sphere.
280280 if & * * name == "Sphere" {
281281 // Lightmap exposure defaults to zero, so we need to set it.
282- if let Some ( ref mut material) = materials. get_mut ( material) {
282+ if let Some ( ref mut material) = materials. get_cloned_mut ( material) {
283283 material. lightmap_exposure = LIGHTMAP_EXPOSURE ;
284284 }
285285
You can’t perform that action at this time.
0 commit comments