diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 15:53:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 15:53:48 +0400 |
commit | 3148c0f203ba23bead40e4e037bcc9a1eb27278b (patch) | |
tree | 1e91d053095e10a4b7afa1c392bb7525d3967cbe /add_mesh_pipe_joint.py | |
parent | d566152b0372d1d29578c3353f6a4d5ff3af4d63 (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 'add_mesh_pipe_joint.py')
-rw-r--r-- | add_mesh_pipe_joint.py | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/add_mesh_pipe_joint.py b/add_mesh_pipe_joint.py index 97f7d2e5..f0f17300 100644 --- a/add_mesh_pipe_joint.py +++ b/add_mesh_pipe_joint.py @@ -1267,32 +1267,16 @@ class INFO_MT_mesh_pipe_joints_add(bpy.types.Menu): import space_info # Define "Pipe Joints" menu -menu_func = (lambda self, - context: self.layout.menu("INFO_MT_mesh_pipe_joints_add", icon="PLUGIN")) +def menu_func(self, context): + self.layout.menu("INFO_MT_mesh_pipe_joints_add", icon="PLUGIN") def register(): - # Register the operators/menus. - bpy.types.register(AddElbowJoint) - bpy.types.register(AddTeeJoint) - bpy.types.register(AddWyeJoint) - bpy.types.register(AddCrossJoint) - bpy.types.register(AddNJoint) - bpy.types.register(INFO_MT_mesh_pipe_joints_add) - # Add "Pipe Joints" menu to the "Add Mesh" menu space_info.INFO_MT_mesh_add.append(menu_func) def unregister(): - # Unregister the operators/menus. - bpy.types.unregister(AddElbowJoint) - bpy.types.unregister(AddTeeJoint) - bpy.types.unregister(AddWyeJoint) - bpy.types.unregister(AddCrossJoint) - bpy.types.unregister(AddNJoint) - bpy.types.unregister(INFO_MT_mesh_pipe_joints_add) - # Remove "Pipe Joints" menu from the "Add Mesh" menu. space_info.INFO_MT_mesh_add.remove(menu_func) |