From 939a5cb6eecc45d925a147b8b6f6a1225679bc45 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 21 Aug 2018 01:17:15 +1200 Subject: 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 --- release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'release/scripts/startup') 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, -- cgit v1.2.3