[Bf-blender-cvs] [3fb7e5df50d] master: Cleanup: don't register dope-sheet header types
Campbell Barton
noreply at git.blender.org
Thu Sep 17 06:43:56 CEST 2020
Commit: 3fb7e5df50d25c1d1746c8d85148f33684f85951
Author: Campbell Barton
Date: Thu Sep 17 14:38:45 2020 +1000
Branches: master
https://developer.blender.org/rB3fb7e5df50d25c1d1746c8d85148f33684f85951
Cleanup: don't register dope-sheet header types
These are only used to hold static methods, there is no reason to
register them.
===================================================================
M release/scripts/startup/bl_ui/space_dopesheet.py
M release/scripts/startup/bl_ui/space_time.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py
index 3f8c41e4f21..f2bd68a52ec 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -228,13 +228,7 @@ class DOPESHEET_HT_header(Header):
# Header for "normal" dopesheet editor modes (e.g. Dope Sheet, Action, Shape Keys, etc.)
-class DOPESHEET_HT_editor_buttons(Header):
- bl_idname = "DOPESHEET_HT_editor_buttons"
- bl_space_type = 'DOPESHEET_EDITOR'
- bl_label = ""
-
- def draw(self, context):
- pass
+class DOPESHEET_HT_editor_buttons:
@staticmethod
def draw_header(context, layout):
@@ -746,7 +740,6 @@ class DOPESHEET_PT_gpencil_layer_display(LayersDopeSheetPanel, GreasePencilLayer
classes = (
DOPESHEET_HT_header,
- DOPESHEET_HT_editor_buttons,
DOPESHEET_MT_editor_menus,
DOPESHEET_MT_view,
DOPESHEET_MT_select,
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py
index 68b5f8acd38..62b765c7d32 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -18,17 +18,11 @@
# <pep8 compliant>
import bpy
-from bpy.types import Header, Menu, Panel
+from bpy.types import Menu, Panel
# Header buttons for timeline header (play, etc.)
-class TIME_HT_editor_buttons(Header):
- bl_idname = "TIME_HT_editor_buttons"
- bl_space_type = 'DOPESHEET_EDITOR'
- bl_label = ""
-
- def draw(self, context):
- pass
+class TIME_HT_editor_buttons:
@staticmethod
def draw_header(context, layout):
@@ -311,7 +305,6 @@ class TIME_PT_keyframing_settings(TimelinePanelButtons, Panel):
###################################
classes = (
- TIME_HT_editor_buttons,
TIME_MT_editor_menus,
TIME_MT_marker,
TIME_MT_view,
More information about the Bf-blender-cvs
mailing list