[Bf-extensions-cvs] [e705b76] master: fix for console error

Brendon Murphy noreply at git.blender.org
Thu Aug 14 06:11:43 CEST 2014


Commit: e705b766c9395cd30007fecebb7ff1296384fd85
Author: Brendon Murphy
Date:   Thu Aug 14 14:10:26 2014 +1000
Branches: master
https://developer.blender.org/rBAe705b766c9395cd30007fecebb7ff1296384fd85

fix for console error

===================================================================

M	add_curve_extra_objects/__init__.py

===================================================================

diff --git a/add_curve_extra_objects/__init__.py b/add_curve_extra_objects/__init__.py
index 1807f0d..93d5f49 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__)



More information about the Bf-extensions-cvs mailing list