[Bf-extensions-cvs] [f6ba557] dxf_import: fix for console error
Brendon Murphy
noreply at git.blender.org
Fri Aug 15 12:38:30 CEST 2014
Commit: f6ba557f6de5168695855ae1351f9e5f6d09fc59
Author: Brendon Murphy
Date: Thu Aug 14 14:10:26 2014 +1000
Branches: dxf_import
https://developer.blender.org/rBAf6ba557f6de5168695855ae1351f9e5f6d09fc59
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