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>2010-08-02 15:53:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-02 15:53:48 +0400
commit3148c0f203ba23bead40e4e037bcc9a1eb27278b (patch)
tree1e91d053095e10a4b7afa1c392bb7525d3967cbe /io_import_scene_mhx.py
parentd566152b0372d1d29578c3353f6a4d5ff3af4d63 (diff)
update addons to work with new register/unregister method,
These scritps still need changes related to parent classes - mesh_surface_sketch.py - render_renderfarmfi.py - space_view3d_align_tools.py - object_cloud_gen.py
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r--io_import_scene_mhx.py20
1 files changed, 7 insertions, 13 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index 9800b99c..9a2f712f 100644
--- a/io_import_scene_mhx.py
+++ b/io_import_scene_mhx.py
@@ -2203,17 +2203,16 @@ def unregisterPanels():
bpy.types.unregister(MakeHumanFingerPanel)
'''
+
+def menu_func(self, context):
+ self.layout.operator(IMPORT_OT_makehuman_mhx.bl_idname, text="MakeHuman (.mhx)...")
+
+
def register():
- # registerPanels()
- bpy.types.register(IMPORT_OT_makehuman_mhx)
- menu_func = lambda self, context: self.layout.operator(IMPORT_OT_makehuman_mhx.bl_idname, text="MakeHuman (.mhx)...")
bpy.types.INFO_MT_file_import.append(menu_func)
- return
-
+
+
def unregister():
- # unregisterPanels()
- bpy.types.unregister(IMPORT_OT_makehuman_mhx)
- menu_func = lambda self, context: self.layout.operator(IMPORT_OT_makehuman_mhx.bl_idname, text="MakeHuman (.mhx)...")
bpy.types.INFO_MT_file_import.remove(menu_func)
if __name__ == "__main__":
@@ -2239,8 +2238,3 @@ readMhxFile("C:/Documents and Settings/xxxxxxxxxxxxxxxxxxxx/Mina dokument/makehu
#readMhxFile("/home/thomas/myblends/gobo/gobo.mhx")
#readMhxFile("/home/thomas/myblends/sintel/simple.mhx")
"""
-
-
-
-
-