Grease Pencil: use standard eraser and paint brush cursors
Ref D5197
This commit is contained in:
parent
47fdac8ad9
commit
e56f71d03f
|
@ -199,7 +199,7 @@ class _defs_annotate:
|
|||
idname="builtin.annotate_line",
|
||||
label="Annotate Line",
|
||||
icon="ops.gpencil.draw.line",
|
||||
cursor='CROSSHAIR',
|
||||
cursor='PAINT_BRUSH',
|
||||
keymap="Generic Tool: Annotate Line",
|
||||
draw_settings=draw_settings,
|
||||
)
|
||||
|
@ -210,7 +210,7 @@ class _defs_annotate:
|
|||
idname="builtin.annotate_polygon",
|
||||
label="Annotate Polygon",
|
||||
icon="ops.gpencil.draw.poly",
|
||||
cursor='CROSSHAIR',
|
||||
cursor='PAINT_BRUSH',
|
||||
keymap="Generic Tool: Annotate Polygon",
|
||||
draw_settings=draw_settings,
|
||||
)
|
||||
|
@ -225,7 +225,7 @@ class _defs_annotate:
|
|||
idname="builtin.annotate_eraser",
|
||||
label="Annotate Eraser",
|
||||
icon="ops.gpencil.draw.eraser",
|
||||
cursor='CROSSHAIR', # XXX: Always show brush circle when enabled
|
||||
cursor='ERASER',
|
||||
keymap="Generic Tool: Annotate Eraser",
|
||||
draw_settings=draw_settings,
|
||||
)
|
||||
|
|
|
@ -1560,7 +1560,7 @@ static int gpencil_draw_init(bContext *C, wmOperator *op, const wmEvent *event)
|
|||
static void gpencil_draw_cursor_set(tGPsdata *p)
|
||||
{
|
||||
if (p->paintmode == GP_PAINTMODE_ERASER) {
|
||||
WM_cursor_modal_set(p->win, WM_CURSOR_CROSS); /* XXX need a better cursor */
|
||||
WM_cursor_modal_set(p->win, WM_CURSOR_ERASER);
|
||||
}
|
||||
else {
|
||||
WM_cursor_modal_set(p->win, WM_CURSOR_PAINT_BRUSH);
|
||||
|
|
|
@ -54,6 +54,7 @@ const EnumPropertyItem rna_enum_window_cursor_items[] = {
|
|||
{WM_CURSOR_KNIFE, "KNIFE", 0, "Knife", ""},
|
||||
{WM_CURSOR_TEXT_EDIT, "TEXT", 0, "Text", ""},
|
||||
{WM_CURSOR_PAINT_BRUSH, "PAINT_BRUSH", 0, "Paint Brush", ""},
|
||||
{WM_CURSOR_ERASER, "ERASER", 0, "Eraser", ""},
|
||||
{WM_CURSOR_HAND, "HAND", 0, "Hand", ""},
|
||||
{WM_CURSOR_EW_SCROLL, "SCROLL_X", 0, "Scroll-X", ""},
|
||||
{WM_CURSOR_NS_SCROLL, "SCROLL_Y", 0, "Scroll-Y", ""},
|
||||
|
|
Loading…
Reference in New Issue