Sculpt: fix const error

This commit is contained in:
Joseph Eagar
2022-11-22 11:14:36 -08:00
parent a2a72d89b1
commit fa8a59689b

View File

@@ -836,7 +836,7 @@ void BKE_pbvh_build_grids(PBVH *pbvh,
/* Find maximum number of grids per face. */
int max_grids = 1;
MPoly *mpoly = BKE_mesh_polys(me);
const MPoly *mpoly = BKE_mesh_polys(me);
for (int i = 0; i < me->totpoly; i++) {
max_grids = max_ii(max_grids, mpoly[i].totloop);