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
This commit is contained in:
Joshua Leung 2018-08-21 01:17:15 +12:00
parent 31a1c2b7d2
commit 939a5cb6ee
Notes: blender-bot 2024-03-22 15:57:27 +01:00
Referenced by issue #56463, UV Image Editor
1 changed files with 10 additions and 1 deletions

View File

@ -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,