Fix #29364: Shade Smooth button is misssing in curve object tools.

Added buttons to toolbar to control shading of curves and surfaces
This commit is contained in:
Sergey Sharybin
2011-11-22 17:26:40 +00:00
parent 04fe6fc764
commit 5f2c9c660c

View 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:")