mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 05:33:04 +00:00
Default UI shadow samples fix (#15953)
# Objective In `queue_shadows`, the `UiBoxShadows` option is unwrapped incorrectly which results in the number of shadow samples being set to `u32::default()` instead of `UiBoxShadows::default()` if the camera entity doesn't have the component. ## Solution Just use `unwrap_or_default` directly without `map`.
This commit is contained in:
parent
eb67c81059
commit
fc659a6143
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ pub fn queue_shadows(
|
|||
&ui_slicer_pipeline,
|
||||
UiTextureSlicePipelineKey {
|
||||
hdr: view.hdr,
|
||||
samples: shadow_samples.map(|samples| samples.0).unwrap_or_default(),
|
||||
samples: shadow_samples.copied().unwrap_or_default().0,
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue