Commit: 939a5cb6eecc45d925a147b8b6f6a1225679bc45
Author: Joshua Leung
Date:   Tue Aug 21 01:17:15 2018 +1200
Branches: blender2.8
https://developer.blender.org/rB939a5cb6eecc45d925a147b8b6f6a1225679bc45

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

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

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

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to