Cleanup: Fix clang compile warning
Use a reference instead of copying the string. Differential Revision: https://developer.blender.org/D10411
This commit is contained in:
committed by
Hans Goudey
parent
cdb3cbd644
commit
1065b413ed
@@ -38,7 +38,7 @@ void gather_attribute_info(Map<std::string, AttributeInfo> &attributes,
|
||||
}
|
||||
const GeometryComponent &component = *set.get_component_for_read(component_type);
|
||||
|
||||
for (const std::string name : component.attribute_names()) {
|
||||
for (const std::string &name : component.attribute_names()) {
|
||||
if (ignored_attributes.contains(name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user