diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-12-07 16:57:54 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-12-07 17:15:52 +0300 |
commit | f034926dbac36de826b023cb0adeed447384414e (patch) | |
tree | 3ef9129a7ea9a35027c3d4ae46e52995179a7a2c /release | |
parent | 4fe578c827afacdd67f9f8064b2cd831af29e6a2 (diff) |
add 'Control Points' and 'Segments' editmode menus for Surfaces
Fixes T58922
Reviewers: brecht, billreynish
Maniphest Tasks: T58922
Differential Revision: https://developer.blender.org/D4046
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index f406ddb58d5..6fef07c8284 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -350,7 +350,7 @@ class VIEW3D_MT_editor_menus(Menu): layout.menu("VIEW3D_MT_edit_mesh_edges") layout.menu("VIEW3D_MT_edit_mesh_faces") layout.menu("VIEW3D_MT_uv_map", text="UV") - elif mode_string == 'EDIT_CURVE': + elif mode_string in ['EDIT_CURVE', 'EDIT_SURFACE']: layout.menu("VIEW3D_MT_edit_curve_ctrlpoints") layout.menu("VIEW3D_MT_edit_curve_segments") @@ -3319,7 +3319,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(Menu): edit_object = context.edit_object - if edit_object.type == 'CURVE': + if edit_object.type in ['CURVE', 'SURFACE']: layout.operator("curve.extrude_move") layout.separator() @@ -3328,20 +3328,22 @@ class VIEW3D_MT_edit_curve_ctrlpoints(Menu): layout.separator() - layout.operator("transform.tilt") - layout.operator("curve.tilt_clear") + if edit_object.type == 'CURVE': + layout.operator("transform.tilt") + layout.operator("curve.tilt_clear") - layout.separator() + layout.separator() - layout.operator_menu_enum("curve.handle_type_set", "type") - layout.operator("curve.normals_make_consistent") + layout.operator_menu_enum("curve.handle_type_set", "type") + layout.operator("curve.normals_make_consistent") - layout.separator() + layout.separator() layout.operator("curve.smooth") - layout.operator("curve.smooth_weight") - layout.operator("curve.smooth_radius") - layout.operator("curve.smooth_tilt") + if edit_object.type == 'CURVE': + layout.operator("curve.smooth_weight") + layout.operator("curve.smooth_radius") + layout.operator("curve.smooth_tilt") layout.separator() |