Fix #35337: sculpt performance regression, partial redraw was not working anymore
[blender.git] / source / blender / windowmanager / intern / wm_event_system.c
index f79ac1c9083885125ecc84783b80f94c51a71143..89dc6ccc03830f00af158d4f17b924e763e3d831 100644 (file)
@@ -2002,8 +2002,7 @@ static void wm_paintcursor_tag(bContext *C, wmPaintCursor *pc, ARegion *ar)
                for (; pc; pc = pc->next) {
                        if (pc->poll == NULL || pc->poll(C)) {
                                wmWindow *win = CTX_wm_window(C);
-                               win->screen->do_draw_paintcursor = TRUE;
-                               wm_tag_redraw_overlay(win, ar);
+                               WM_paint_cursor_tag_redraw(win, ar);
                        }
                }
        }