diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-25 03:13:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-25 03:15:48 +0300 |
commit | bf34f95a9ed1b5bafc31360459bee3ce13714371 (patch) | |
tree | 4e46b80bfb30ec200c2880bd5cffb0a5b899742c /release/scripts/startup/bl_ui/space_toolsystem_common.py | |
parent | 03e0fd289dd970a82848a1921fe216c166857a03 (diff) |
UI: move 2d paint panels to topbar & toolsettings
Removed 'Tool' and 'Options' panels,
both these settings are quite obscure and
already available in the 'Brush' menu.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_common.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py index 4db2fee4bae..55fe0a3c4a5 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py @@ -533,6 +533,14 @@ class ToolSelectPanelHelper: self.draw_cls(self.layout, context) @staticmethod + def tool_active_from_context(context): + # BAD DESIGN WARNING: last used tool + workspace = context.workspace + space_type = workspace.tools_space_type + mode = workspace.tools_mode + return ToolSelectPanelHelper._tool_active_from_context(context, space_type, mode) + + @staticmethod def draw_active_tool_header( context, layout, *, |