Cleanup: fix compiler warnings

This commit is contained in:
2021-02-17 06:19:01 +01:00
parent 351d8bfc41
commit ec8c09f2aa
2 changed files with 2 additions and 1 deletions

View File

@@ -628,7 +628,7 @@ void BlenderStrokeRenderer::GenerateStrokeMesh(StrokeGroup *group, bool hasTex)
mesh->mloopcol = colors;
mesh->mat = (Material **)MEM_mallocN(sizeof(Material *) * mesh->totcol, "MaterialList");
for (const auto &item : group->materials.items()) {
for (const auto item : group->materials.items()) {
Material *material = item.key;
const int matnr = item.value;
mesh->mat[matnr] = material;