Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-01-02 23:34:35 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-02 23:34:35 +0400
commit9b7f30d6b0694e6a5bef34333a27f53fb86e47ea (patch)
tree7f38b9938c58d54fb12d8b6247af69548502012a
parentd94202b312d1b3a977d14dac0dbc30e31e1cb444 (diff)
Bring back edit curve add menu
It was wrongly considered unused in rB5fdfa6d47542db32426ac080f071a1fd751e05a7
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 4722146089f..e0f53420fea 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -919,6 +919,22 @@ class INFO_MT_metaball_add(Menu):
layout.operator_enum("object.metaball_add", "type")
+class INFO_MT_edit_curve_add(Menu):
+ bl_idname = "INFO_MT_edit_curve_add"
+ bl_label = "Add"
+
+ def draw(self, context):
+ is_surf = context.active_object.type == 'SURFACE'
+
+ layout = self.layout
+ layout.operator_context = 'EXEC_REGION_WIN'
+
+ if is_surf:
+ INFO_MT_surface_add.draw(self, context)
+ else:
+ INFO_MT_curve_add.draw(self, context)
+
+
class INFO_MT_edit_armature_add(Menu):
bl_idname = "INFO_MT_edit_armature_add"
bl_label = "Armature"