[Bf-blender-cvs] [dc215a58518] greasepencil-object: Annotation Tools: Use different cursors to indicate that the tools are running

Joshua Leung noreply at git.blender.org
Tue Jul 24 07:26:41 CEST 2018


Commit: dc215a585185cbc420a22f81c59186255dfb00de
Author: Joshua Leung
Date:   Tue Jul 24 03:16:46 2018 +1200
Branches: greasepencil-object
https://developer.blender.org/rBdc215a585185cbc420a22f81c59186255dfb00de

Annotation Tools: Use different cursors to indicate that the tools are running

===================================================================

M	release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 9668c398658..6f3019d6fff 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -198,6 +198,7 @@ class _defs_annotate:
         return dict(
             text="Annotate",
             icon="ops.gpencil.draw",
+            cursor='PAINT_BRUSH',
             keymap=(
                 ("gpencil.annotate",
                  dict(mode='DRAW', wait_for_input=False),
@@ -214,6 +215,7 @@ class _defs_annotate:
         return dict(
             text="Draw Line",
             icon="ops.gpencil.draw.line",
+            cursor='CROSSHAIR',
             keymap=(
                 ("gpencil.annotate",
                  dict(mode='DRAW_STRAIGHT', wait_for_input=False),
@@ -230,6 +232,7 @@ class _defs_annotate:
         return dict(
             text="Draw Polygon",
             icon="ops.gpencil.draw.poly",
+            cursor='CROSSHAIR',
             keymap=(
                 ("gpencil.annotate",
                  dict(mode='DRAW_POLY', wait_for_input=False),
@@ -248,7 +251,7 @@ class _defs_annotate:
         return dict(
             text="Eraser",
             icon="ops.gpencil.draw.eraser",
-            #cursor='...',  # XXX: Always show brush circle when enabled
+            cursor='CROSSHAIR', # XXX: Always show brush circle when enabled
             keymap=(
                 ("gpencil.annotate",
                  dict(mode='ERASER', wait_for_input=False),



More information about the Bf-blender-cvs mailing list