diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-15 05:20:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-15 05:20:13 +0300 |
commit | d09289ff7a8e8fe6d4da6b46dd153033d7cfd426 (patch) | |
tree | 3c66fb599c3ffa9ee7449cc37b6fd190130c7bd6 /release/scripts/startup/bl_ui/space_image.py | |
parent | 6eacb626e043a584b0ec6cf97902ed40464ad5d3 (diff) |
Cleanup: de-duplicate active tool panel
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index af357a8cc12..a3e8ae851f8 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -37,6 +37,10 @@ from .properties_paint_common import ( from .properties_grease_pencil_common import ( AnnotationDataPanel, ) +from .space_toolsystem_common import ( + ToolActivePanelHelper, +) + from bpy.app.translations import pgettext_iface as iface_ @@ -55,24 +59,11 @@ class BrushButtonsPanel(UnifiedPaintPanel): return tool_settings.brush -class IMAGE_PT_active_tool(Panel): +class IMAGE_PT_active_tool(ToolActivePanelHelper, Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' - bl_label = "Active Tool" bl_category = "Tool" - def draw(self, context): - layout = self.layout - - # Panel display of topbar tool settings. - # currently displays in tool settings, keep here since the same functionality is used for the topbar. - - layout.use_property_split = True - layout.use_property_decorate = False - - from .space_toolsystem_common import ToolSelectPanelHelper - ToolSelectPanelHelper.draw_active_tool_header(context, layout, show_tool_name=True) - class IMAGE_MT_view(Menu): bl_label = "View" |