Sculpt-dev: fix gcc compile error

This commit is contained in:
Joseph Eagar 2022-01-08 02:09:53 -08:00
parent c8aedd75d7
commit 0584c813b5
1 changed files with 1 additions and 1 deletions

View File

@ -2630,7 +2630,7 @@ static void drop_named_material_face_set_slots_update(bContext *C,
bScreen *screen = CTX_wm_screen(C);
ARegion *region = BKE_screen_find_main_region_at_xy(
screen, SPACE_VIEW3D, event->xy[0], event->xy[1]);
screen, SPACE_VIEW3D, event->xy);
const float mval[2] = {event->xy[0] - region->winrct.xmin, event->xy[1] - region->winrct.ymin};
const int face_set_id = ED_sculpt_face_sets_active_update_and_get(C, ob, mval);