T41354, cursor never gets reactivated in uv sculpting.

This commit is contained in:
Antonis Ryakiotakis 2014-08-07 16:14:33 +02:00
parent 05935b54fa
commit 26dc8b7c18
Notes: blender-bot 2023-02-14 10:15:17 +01:00
Referenced by issue #41354, UV-sculpting brush cursor disappears after second time of activating it.
1 changed files with 6 additions and 4 deletions

View File

@ -239,12 +239,14 @@ void ED_space_image_uv_sculpt_update(wmWindowManager *wm, ToolSettings *settings
BKE_paint_init(&settings->uvsculpt->paint, PAINT_CURSOR_SCULPT);
WM_paint_cursor_activate(wm, uv_sculpt_brush_poll,
brush_drawcursor_uvsculpt, NULL);
settings->uvsculpt->paint.paint_cursor = WM_paint_cursor_activate(wm, uv_sculpt_brush_poll,
brush_drawcursor_uvsculpt, NULL);
}
else {
if (settings->uvsculpt)
settings->uvsculpt->paint.flags &= ~PAINT_SHOW_BRUSH;
if (settings->uvsculpt) {
WM_paint_cursor_end(wm, settings->uvsculpt->paint.paint_cursor);
settings->uvsculpt->paint.paint_cursor = NULL;
}
}
}