diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-17 07:38:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-17 07:43:28 +0300 |
commit | 3fb7e5df50d25c1d1746c8d85148f33684f85951 (patch) | |
tree | 7f69f8bc90248ea2d864e544376c80a32d12a938 /release/scripts/startup/bl_ui | |
parent | 7a1c405bb4c10f100e90752f5032de38f8b9c0db (diff) |
Cleanup: don't register dope-sheet header types
These are only used to hold static methods, there is no reason to
register them.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_dopesheet.py | 9 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_time.py | 11 |
2 files changed, 3 insertions, 17 deletions
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, |