diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-06-07 13:59:47 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-06-07 13:59:47 +0300 |
commit | a412f49e7580a96ff3088dd2f763efe3a814c131 (patch) | |
tree | 4c4077c7e3fcab2cdc2e736a59d5c4d8f4ae8a5f /release | |
parent | 1f93f9e9820890a9389b603df8e3c4623a6f73a5 (diff) |
GPencil: Create new CURSOR for paint modes
This new cursor is used instead of the ARROW because it was too disruptive while you are drawing.
The change affects all paint modes that are used Brushes.
See D5036 for details.
Reviewers: @brecht @billreynish @mendio
Cursor designed by: @billreynish
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index a2b96c9d6c7..4ed0d5b1bbb 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -60,6 +60,7 @@ def generate_from_enum_ex( idname=idname_prefix + name, label=name, icon=icon_prefix + idname.lower(), + cursor='PAINT_CROSSHAIR', data_block=idname, **tooldef_keywords, ) @@ -199,7 +200,7 @@ class _defs_annotate: idname="builtin.annotate_line", label="Annotate Line", icon="ops.gpencil.draw.line", - cursor='CROSSHAIR', + cursor='PAINT_CROSSHAIR', keymap="Generic Tool: Annotate Line", draw_settings=draw_settings, ) @@ -210,7 +211,7 @@ class _defs_annotate: idname="builtin.annotate_polygon", label="Annotate Polygon", icon="ops.gpencil.draw.poly", - cursor='CROSSHAIR', + cursor='PAINT_CROSSHAIR', keymap="Generic Tool: Annotate Polygon", draw_settings=draw_settings, ) @@ -225,7 +226,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='PAINT_CROSSHAIR', # XXX: Always show brush circle when enabled keymap="Generic Tool: Annotate Eraser", draw_settings=draw_settings, ) @@ -1286,7 +1287,7 @@ class _defs_gpencil_paint: idname="builtin.line", label="Line", icon="ops.gpencil.primitive_line", - cursor='CROSSHAIR', + cursor='PAINT_CROSSHAIR', widget=None, keymap=(), ) @@ -1297,7 +1298,7 @@ class _defs_gpencil_paint: idname="builtin.box", label="Box", icon="ops.gpencil.primitive_box", - cursor='CROSSHAIR', + cursor='PAINT_CROSSHAIR', widget=None, keymap=(), ) @@ -1308,7 +1309,7 @@ class _defs_gpencil_paint: idname="builtin.circle", label="Circle", icon="ops.gpencil.primitive_circle", - cursor='CROSSHAIR', + cursor='PAINT_CROSSHAIR', widget=None, keymap=(), ) @@ -1319,7 +1320,7 @@ class _defs_gpencil_paint: idname="builtin.arc", label="Arc", icon="ops.gpencil.primitive_arc", - cursor='CROSSHAIR', + cursor='PAINT_CROSSHAIR', widget=None, keymap=(), ) @@ -1330,7 +1331,7 @@ class _defs_gpencil_paint: idname="builtin.curve", label="Curve", icon="ops.gpencil.primitive_curve", - cursor='CROSSHAIR', + cursor='PAINT_CROSSHAIR', widget=None, keymap=(), ) |