2.5 Smooth/Flat Shading:
authorThomas Dinges <blender@dingto.org>
Sat, 25 Jul 2009 10:42:23 +0000 (10:42 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 25 Jul 2009 10:42:23 +0000 (10:42 +0000)
* Added operators in Toolbar for Object Mode too. (Mesh only).
I think it should be there too, going into edit mode and select all just to change the shading of the whole mesh is not good. ;-)

release/ui/space_view3d_toolbar.py

index 0612439f7cfac41775d532dbf77bee2b629afcf6..7889827ee7bb29c7144feb8e5ffdc9abc3de2a77 100644 (file)
@@ -28,6 +28,13 @@ class VIEW3D_PT_tools_objectmode(View3DPanel):
                col.itemO("object.duplicate")
                col.itemO("object.delete")
                
+               if context.active_object.type == 'MESH':
+                       layout.itemL(text="Shading:")
+               
+                       col = layout.column(align=True)
+                       col.itemO("object.shade_smooth", text="Smooth")
+                       col.itemO("object.shade_flat", text="Flat")
+               
                layout.itemL(text="Keyframes:")
                
                col = layout.column(align=True)