diff options
Diffstat (limited to 'add_curve_aceous_galore.py')
-rw-r--r-- | add_curve_aceous_galore.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py index cb7d0b69..e466fb53 100644 --- a/add_curve_aceous_galore.py +++ b/add_curve_aceous_galore.py @@ -1105,25 +1105,14 @@ class Curveaceous_galore(bpy.types.Operator): ################################################################################ ##### REGISTER ##### -Curveaceous_galore_button = (lambda self, context: self.layout.operator - (Curveaceous_galore.bl_idname, text="curvatures gallore", icon="PLUGIN")) +def Curveaceous_galore_button(self, context): + self.layout.operator(Curveaceous_galore.bl_idname, text="curvatures gallore", icon="PLUGIN") -classes = [ -Curveaceous_galore - ] def register(): - register = bpy.types.register - for cls in classes: - register(cls) - bpy.types.INFO_MT_curve_add.append(Curveaceous_galore_button) def unregister(): - unregister = bpy.types.unregister - for cls in classes: - unregister(cls) - bpy.types.INFO_MT_curve_add.remove(Curveaceous_galore_button) if __name__ == "__main__": |