diff options
Diffstat (limited to 'object_add_chain.py')
-rw-r--r-- | object_add_chain.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/object_add_chain.py b/object_add_chain.py index 40782725..22f45e79 100644 --- a/object_add_chain.py +++ b/object_add_chain.py @@ -134,21 +134,16 @@ class AddChain(bpy.types.Operator): return {'FINISHED'} # Register the operator -menu_func = (lambda self, - context: self.layout.operator(AddChain.bl_idname, - text="Chain", icon='PLUGIN')) +def menu_func(self, context): + self.layout.operator(AddChain.bl_idname, text="Chain", icon='PLUGIN') def register(): - bpy.types.register(AddChain) - # Add "Chain" menu to the "Add Mesh" menu. bpy.types.INFO_MT_mesh_add.append(menu_func) def unregister(): - bpy.types.unregister(AddChain) - # Remove "Chain" menu from the "Add Mesh" menu. bpy.types.INFO_MT_mesh_add.remove(menu_func) |