From 288fa42419d70dd7709d15f00e8a6bee10c24e89 Mon Sep 17 00:00:00 2001 From: "Spivak Vladimir (cwolf3d)" Date: Sun, 3 Feb 2019 03:51:50 +0200 Subject: Added (in add_curve_simple) a type of curve creation. Implemented the ability to add curves (add_curve_aceous_galore) in edit mode. --- add_curve_extra_objects/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'add_curve_extra_objects/__init__.py') diff --git a/add_curve_extra_objects/__init__.py b/add_curve_extra_objects/__init__.py index 38305813..d7fbe2a4 100644 --- a/add_curve_extra_objects/__init__.py +++ b/add_curve_extra_objects/__init__.py @@ -244,13 +244,12 @@ class INFO_MT_curve_knots_add(Menu): # Define "Extras" menus def menu_func(self, context): - if context.mode != 'OBJECT': - # fix in D2142 will allow to work in EDIT_CURVE - return None - layout = self.layout layout.operator_menu_enum("curve.curveaceous_galore", "ProfileType", icon='CURVE_DATA') + if context.mode != 'OBJECT': + # fix in D2142 will allow to work in EDIT_CURVE + return None layout.operator_menu_enum("curve.spirals", "spiral_type", icon='CURVE_DATA') layout.separator() -- cgit v1.2.3