[Bf-extensions-cvs] [0f2ff3a] master: FBX IO: remove usage of register_module.
Bastien Montagne
noreply at git.blender.org
Sun Mar 19 17:04:45 CET 2017
Commit: 0f2ff3afaef5208718f079009a57fb0eb4d3f424
Author: Bastien Montagne
Date: Sun Mar 19 16:05:41 2017 +0100
Branches: master
https://developer.blender.org/rBA0f2ff3afaef5208718f079009a57fb0eb4d3f424
FBX IO: remove usage of register_module.
===================================================================
M io_scene_fbx/__init__.py
===================================================================
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 9fe15b8..3b6ca35 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (3, 7, 9),
+ "version": (3, 7, 10),
"blender": (2, 77, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
@@ -614,18 +614,27 @@ def menu_func_export(self, context):
self.layout.operator(ExportFBX.bl_idname, text="FBX (.fbx)")
+classes = (
+ ImportFBX,
+ ExportFBX,
+)
+
+
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()
More information about the Bf-extensions-cvs
mailing list