make Mesh::attribute() immutable (#774)
This commit is contained in:
parent
ce1d16d90d
commit
2e2fa4fef4
@ -134,10 +134,7 @@ impl Mesh {
|
||||
self.attributes.insert(name.into(), values);
|
||||
}
|
||||
|
||||
pub fn attribute(
|
||||
&mut self,
|
||||
name: impl Into<Cow<'static, str>>,
|
||||
) -> Option<&VertexAttributeValues> {
|
||||
pub fn attribute(&self, name: impl Into<Cow<'static, str>>) -> Option<&VertexAttributeValues> {
|
||||
self.attributes.get(&name.into())
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user