Fix #119361: Sculpt face set draw broken with multires

`PBVHVertexIter::g` is the grid index within the node, not the the global grid index.
This commit is contained in:
Hans Goudey
2024-03-12 11:39:39 -04:00
parent 91466f71f1
commit 39ebd68a46
@@ -293,7 +293,8 @@ static void do_draw_face_sets_brush_grids(Object *ob,
&automask_data);
if (fade > FACE_SET_BRUSH_MIN_FADE) {
const int face_index = BKE_subdiv_ccg_grid_to_face_index(subdiv_ccg, vd.g);
const int face_index = BKE_subdiv_ccg_grid_to_face_index(subdiv_ccg,
vd.grid_indices[vd.g]);
face_sets[face_index] = ss->cache->paint_face_set;
changed = true;
}