Fix #35337: sculpt performance regression, partial redraw was not working anymore
[blender.git] / source / blender / windowmanager / intern / wm_draw.c
index 005d02647a4d5fb4a237d34f96f3e6bd0b1fdde8..438004b5d76fe4acfffea7099e3ce510bf74ea3c 100644 (file)
@@ -798,6 +798,12 @@ void wm_tag_redraw_overlay(wmWindow *win, ARegion *ar)
        }
 }
 
+void WM_paint_cursor_tag_redraw(wmWindow *win, ARegion *ar)
+{
+       win->screen->do_draw_paintcursor = TRUE;
+       wm_tag_redraw_overlay(win, ar);
+}
+
 void wm_draw_update(bContext *C)
 {
        wmWindowManager *wm = CTX_wm_manager(C);