diff --git a/crates/bevy_render/src/mesh/mesh/mod.rs b/crates/bevy_render/src/mesh/mesh/mod.rs index faba4b3a179ea..5e4cd068408fa 100644 --- a/crates/bevy_render/src/mesh/mesh/mod.rs +++ b/crates/bevy_render/src/mesh/mesh/mod.rs @@ -445,7 +445,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, @@ -535,7 +535,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()),