[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21875] branches/blender2.5/blender/ release/ui/space_view3d_toolbar.py: 2.5 Smooth/Flat Shading:

Thomas Dinges dingto at gmx.de
Sat Jul 25 12:42:24 CEST 2009


Revision: 21875
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21875
Author:   dingto
Date:     2009-07-25 12:42:23 +0200 (Sat, 25 Jul 2009)

Log Message:
-----------
2.5 Smooth/Flat Shading:

* 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. ;-)

Modified Paths:
--------------
    branches/blender2.5/blender/release/ui/space_view3d_toolbar.py

Modified: branches/blender2.5/blender/release/ui/space_view3d_toolbar.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_view3d_toolbar.py	2009-07-25 05:11:28 UTC (rev 21874)
+++ branches/blender2.5/blender/release/ui/space_view3d_toolbar.py	2009-07-25 10:42:23 UTC (rev 21875)
@@ -28,6 +28,13 @@
 		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)





More information about the Bf-blender-cvs mailing list