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 59f7dcd commit 3cfb15fCopy full SHA for 3cfb15f
crates/bevy_mesh/src/mesh.rs
@@ -2153,7 +2153,9 @@ impl Mesh {
2153
if let Some(MeshAttributeData {
2154
values: VertexAttributeValues::Float32x3(position_values),
2155
..
2156
- }) = attributes.as_ref()?.get(&Self::ATTRIBUTE_POSITION.id)
+ }) = attributes
2157
+ .as_ref_option()?
2158
+ .and_then(|attrs| attrs.get(&Self::ATTRIBUTE_POSITION.id))
2159
{
2160
let mut iter = position_values.iter().map(|p| Vec3::from_slice(p));
2161
let mut min = iter.next().unwrap();
0 commit comments