Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-06-30 10:02:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-09 15:15:54 +0300
commita75bd5dec43fa3e633538cc8b996169a1d845ba2 (patch)
treeaa79b5d4040362face29315b6bc7f62dede56714 /io_mesh_ply
parent3430fbc7013d037e153160d5de9bfbd887cecb4f (diff)
Register individual classes instead of per-module
Diffstat (limited to 'io_mesh_ply')
-rw-r--r--io_mesh_ply/__init__.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py
index cceb4186..7e2a7037 100644
--- a/io_mesh_ply/__init__.py
+++ b/io_mesh_ply/__init__.py
@@ -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)