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.
1 parent 037a3b0 commit 0b55e87Copy full SHA for 0b55e87
crates/bevy_pbr/src/wireframe.rs
@@ -97,7 +97,7 @@ fn prepare_wireframes(
97
});
98
99
let add_wireframe_uniform = |(entity, wireframe): (Entity, Option<&Wireframe>)| {
100
- let custom_color = wireframe.map(|wireframe| wireframe.color).flatten();
+ let custom_color = wireframe.and_then(|wireframe| wireframe.color);
101
let uniform_offset = WireframeUniformOffset(if let Some(custom_color) = custom_color {
102
wireframe_meta.uniforms.push(WireframeUniform {
103
color: custom_color.as_linear_rgba_f32().into(),
0 commit comments