Sculpt: Fix missing const in recent commit

This commit is contained in:
Joseph Eagar 2022-11-20 08:17:02 -08:00
parent 6b3cee2538
commit 42c30f3b9c
1 changed files with 1 additions and 1 deletions

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);