Cleanup: quiet warning

"loop variable 'item' is always a copy because the range of type ..."
This commit is contained in:
Jacques Lucke
2021-02-25 16:55:08 +01:00
parent 400f2e4be6
commit 35df354e4a

View File

@@ -1221,7 +1221,7 @@ class VertexGroupsAttributeProvider final : public DynamicAttributesProvider {
{
BLI_assert(component.type() == GeometryComponentType::Mesh);
const MeshComponent &mesh_component = static_cast<const MeshComponent &>(component);
for (const auto &item : mesh_component.vertex_group_names().items()) {
for (const auto item : mesh_component.vertex_group_names().items()) {
const StringRefNull name = item.key;
const int vertex_group_index = item.value;
if (vertex_group_index >= 0) {