Cleanup: don't register dope-sheet header types
These are only used to hold static methods, there is no reason to register them.
This commit is contained in:
parent
7a1c405bb4
commit
3fb7e5df50
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user