diff --git a/crates/bevy_render/src/mesh/mesh/mod.rs b/crates/bevy_render/src/mesh/mesh/mod.rs index bcd0084cabb3d..12623a27be54a 100644 --- a/crates/bevy_render/src/mesh/mesh/mod.rs +++ b/crates/bevy_render/src/mesh/mesh/mod.rs @@ -607,7 +607,7 @@ impl VertexAttributeValues { } /// Returns the values as float triples if possible. - fn as_float3(&self) -> Option<&[[f32; 3]]> { + pub fn as_float3(&self) -> Option<&[[f32; 3]]> { match self { VertexAttributeValues::Float32x3(values) => Some(values), _ => None, @@ -696,7 +696,7 @@ pub enum Indices { impl Indices { /// Returns an iterator over the indices. - fn iter(&self) -> impl Iterator + '_ { + pub fn iter(&self) -> impl Iterator + '_ { match self { Indices::U16(vec) => IndicesIter::U16(vec.iter()), Indices::U32(vec) => IndicesIter::U32(vec.iter()),