Skip to content
Snippets Groups Projects
Commit a75bd5de authored by Campbell Barton's avatar Campbell Barton
Browse files

Register individual classes instead of per-module

parent 3430fbc7
Branches
Tags
No related merge requests found
......@@ -180,15 +180,23 @@ def menu_func_export(self, context):
self.layout.operator(ExportPLY.bl_idname, text="Stanford (.ply)")
classes = (
ImportPLY,
ExportPLY,
)
def register():
bpy.utils.register_module(__name__)
for cls in classes:
bpy.utils.register_class(cls)
bpy.types.INFO_MT_file_import.append(menu_func_import)
bpy.types.INFO_MT_file_export.append(menu_func_export)
def unregister():
bpy.utils.unregister_module(__name__)
for cls in classes:
bpy.utils.unregister_class(cls)
bpy.types.INFO_MT_file_import.remove(menu_func_import)
bpy.types.INFO_MT_file_export.remove(menu_func_export)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment