Fix #29364: Shade Smooth button is misssing in curve object tools.
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 22 Nov 2011 17:26:40 +0000 (17:26 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 22 Nov 2011 17:26:40 +0000 (17:26 +0000)
Added buttons to toolbar to control shading of curves and surfaces

release/scripts/startup/bl_ui/space_view3d_toolbar.py

index 5bcdbc1efe8f81ae2754d08b2d0d10ffe3fe2ac6..ddea7bd00fdeff6e719e7190ed3be1afac7c2f24 100644 (file)
@@ -88,7 +88,7 @@ class VIEW3D_PT_tools_objectmode(View3DPanel, Panel):
         col.operator("object.join")
 
         active_object = context.active_object
-        if active_object and active_object.type == 'MESH':
+        if active_object and active_object.type in {'MESH', 'CURVE', 'SURFACE'}:
 
             col = layout.column(align=True)
             col.label(text="Shading:")