Core: fix crash in legacy mesh conversion code.

This commit is contained in:
Joseph Eagar
2023-07-13 00:27:42 -07:00
parent 7acd6e61ab
commit 8db97728b5

View File

@@ -2046,7 +2046,7 @@ void BKE_mesh_legacy_convert_polys_to_offsets(Mesh *mesh)
}
});
CustomData_free(&old_poly_data, mesh->totloop);
CustomData_free(&old_poly_data, mesh->totpoly);
}
CustomData_free_layers(&mesh->pdata, CD_MPOLY, mesh->totpoly);