diff options
-rw-r--r-- | io_scene_obj/__init__.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py index b0ff12c3..71587533 100644 --- a/io_scene_obj/__init__.py +++ b/io_scene_obj/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "Wavefront OBJ format", "author": "Campbell Barton, Bastien Montagne", - "version": (2, 3, 2), + "version": (2, 3, 3), "blender": (2, 77, 0), "location": "File > Import-Export", "description": "Import-Export OBJ, Import OBJ mesh, UV's, materials and textures", @@ -319,18 +319,27 @@ def menu_func_export(self, context): self.layout.operator(ExportOBJ.bl_idname, text="Wavefront (.obj)") +classes = ( + ImportOBJ, + ExportOBJ, +) + + 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__) - bpy.types.INFO_MT_file_import.remove(menu_func_import) bpy.types.INFO_MT_file_export.remove(menu_func_export) + for cls in classes: + bpy.utils.unregister_class(cls) + + if __name__ == "__main__": register() |