Cleanup: use tuples for storing classes

This commit is contained in:
Campbell Barton
2018-10-03 09:18:14 +10:00
parent fc4f9d369c
commit 318851e128
4 changed files with 8 additions and 8 deletions

View File

@ -487,14 +487,14 @@ class IV_OT_icons_show(bpy.types.Operator):
self, width=self.width)
classes = [
classes = (
IV_PT_icons,
IV_HT_icons,
IV_OT_panel_menu_call,
IV_OT_icon_select,
IV_OT_icons_show,
IV_Preferences,
]
)
def register():

View File

@ -217,10 +217,10 @@ def menu_func_export(self, context):
self.layout.operator(ExportBVH.bl_idname, text="Motion Capture (.bvh)")
classes = [
classes = (
ImportBVH,
ExportBVH
]
)
def register():
for cls in classes:

View File

@ -254,10 +254,10 @@ def menu_export(self, context):
self.layout.operator(ExportSTL.bl_idname, text="Stl (.stl)")
classes = [
classes = (
ImportSTL,
ExportSTL
]
)
def register():
for cls in classes:

View File

@ -164,10 +164,10 @@ def menu_func_export(self, context):
)
classes = [
classes = (
ImportMDD,
ExportMDD
]
)
def register():
for cls in classes: