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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user