diff options
author | Brendon Murphy <meta.androcto1@gmail.com> | 2014-08-14 08:10:26 +0400 |
---|---|---|
committer | Brendon Murphy <meta.androcto1@gmail.com> | 2014-08-14 08:10:26 +0400 |
commit | e705b766c9395cd30007fecebb7ff1296384fd85 (patch) | |
tree | 0e7117b5dffe412b2981c1a1df53f1d9a9e72571 /add_curve_extra_objects/__init__.py | |
parent | 12cecc760801c9f7a104741f2d136983431fd14a (diff) |
fix for console error
Diffstat (limited to 'add_curve_extra_objects/__init__.py')
-rw-r--r-- | add_curve_extra_objects/__init__.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/add_curve_extra_objects/__init__.py b/add_curve_extra_objects/__init__.py index 1807f0d1..93d5f498 100644 --- a/add_curve_extra_objects/__init__.py +++ b/add_curve_extra_objects/__init__.py @@ -48,16 +48,23 @@ class INFO_MT_curve_extras_add(bpy.types.Menu): bl_idname = "curve_extra_objects_add" bl_label = "Extra Objects" -# Define "Extras" menu -def menu_func(self, context): + def draw(self, context): layout = self.layout layout.operator_context = 'INVOKE_REGION_WIN' - layout.operator("mesh.curveaceous_galore", + layout.operator("mesh.curveaceous_galor e", text="Curves Galore!") layout.operator("curve.spirals", text="Spirals") layout.operator("curve.torus_knot_plus", text="Torus Knot Plus") +# Define "Extras" menu +def menu_func(self, context): + self.layout.operator("mesh.curveaceous_galore", + text="Curves Galore!") + self.layout.operator("curve.spirals", + text="Spirals") + self.layout.operator("curve.spirals", + text="Spirals") def register(): bpy.utils.register_module(__name__) |