Fix regression in bd79691599

The sequencer header needs to be drawn, even if the returned
variables aren't used.
This commit is contained in:
Campbell Barton
2021-03-22 21:55:30 +11:00
parent 36fdbed2f0
commit ccb372d17c

View File

@@ -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):