diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-08-20 16:17:15 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-08-20 16:22:02 +0300 |
commit | 939a5cb6eecc45d925a147b8b6f6a1225679bc45 (patch) | |
tree | 9864d8b75e53dce8524d2fb91f45a8d6c6e16fc5 /release/scripts/startup | |
parent | 31a1c2b7d2ab307475ec08dc4f7b6f8e6a9eebe1 (diff) |
Image Editor: Add active tool button for Annotations (WIP - Event handling not working)
This reuses the tool defines for the 3D view. However, for some reason,
the events don't seem to be getting fired off here, like the tool system
is getting ignored here completely.
FIXME: Resolve the event handling issues
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index cc2f34e314d..54499bb4ac3 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -1418,13 +1418,22 @@ class IMAGE_PT_tools_active(ToolSelectPanelHelper, Panel): ), ) + _tools_annotate = ( + ( + _defs_annotate.scribble, + _defs_annotate.line, + _defs_annotate.poly, + _defs_annotate.eraser, + ), + ) + _tools = { None: [ # for all modes ], 'VIEW': [ *_tools_select, - + *_tools_annotate, ], 'MASK': [ None, |