diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-22 13:55:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-22 13:59:55 +0300 |
commit | ccb372d17c2db88141dc4511550daac024121eb9 (patch) | |
tree | 6700bc554fe91177a3b94b23171cbecd3685b9aa | |
parent | 36fdbed2f0a45d9766db80fef987614b7637c1a2 (diff) |
Fix regression in bd7969159997b8802d54e79a002350a7fb97944d
The sequencer header needs to be drawn, even if the returned
variables aren't used.
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index b1a32d8c9b8..e3cb316e8fc 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -115,16 +115,18 @@ class SEQUENCER_HT_tool_header(Header): def draw_tool_settings(self, context): pass - # Currently unused. - ''' layout = self.layout # Active Tool # ----------- from bl_ui.space_toolsystem_common import ToolSelectPanelHelper + # Most callers assign the `tool` & `tool_mode`, currently the result is not used. + """ tool = ToolSelectPanelHelper.draw_active_tool_header(context, layout) tool_mode = context.mode if tool is None else tool.mode - ''' + """ + # Only draw the header. + ToolSelectPanelHelper.draw_active_tool_header(context, layout) class SEQUENCER_HT_header(Header): |