[Bf-blender-cvs] [ccb372d17c2] master: Fix regression in bd7969159997b8802d54e79a002350a7fb97944d

Campbell Barton noreply at git.blender.org
Mon Mar 22 12:00:16 CET 2021


Commit: ccb372d17c2db88141dc4511550daac024121eb9
Author: Campbell Barton
Date:   Mon Mar 22 21:55:30 2021 +1100
Branches: master
https://developer.blender.org/rBccb372d17c2db88141dc4511550daac024121eb9

Fix regression in bd7969159997b8802d54e79a002350a7fb97944d

The sequencer header needs to be drawn, even if the returned
variables aren't used.

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

M	release/scripts/startup/bl_ui/space_sequencer.py

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

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



More information about the Bf-blender-cvs mailing list