diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-02 11:03:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-02 11:03:32 +0300 |
commit | a3b9cc71b0aac4f8f2ca5237fd22f222736d6972 (patch) | |
tree | a5bb50f5986a9558c71847237afba3c7d55453b5 /release | |
parent | 0e8119159659571f88c7c112a6c6bac507206cfc (diff) |
UI: Show shade smooth/flat in curve context menu
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 3fe3612e9fd..47863156898 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1751,15 +1751,15 @@ class VIEW3D_MT_object_specials(Menu): ''' # If something is selected - if obj is None: - pass - elif obj.type == 'MESH': - + if obj is not None and obj.type in {'MESH', 'CURVE', 'SURFACE'}: layout.operator("object.shade_smooth", text="Shade Smooth") layout.operator("object.shade_flat", text="Shade Flat") layout.separator() + if obj is None: + pass + elif obj.type == 'MESH': layout.operator_context = 'INVOKE_REGION_WIN' layout.operator_menu_enum("object.origin_set", text="Set Origin...", property="type") |