[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21846] branches/blender2.5/blender/ release/ui: UI

William Reynish william at reynish.com
Fri Jul 24 13:48:45 CEST 2009


Revision: 21846
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21846
Author:   billrey
Date:     2009-07-24 13:48:45 +0200 (Fri, 24 Jul 2009)

Log Message:
-----------
UI

Added cursor location to the view panel in 3D view. 

Removed the Shade Smooth/Flat buttons from mesh data for two reasons:  

These kinds of tools are more appropriate in the tools area, and the context would not always match the selected datablock, if you have multiple objects selected, or if you're viewing the mesh data tab in 'pinned' mode.
The shade smooth/flat buttons are in the edit mode tools area now.

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

Modified: branches/blender2.5/blender/release/ui/buttons_data_mesh.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_data_mesh.py	2009-07-24 11:24:00 UTC (rev 21845)
+++ branches/blender2.5/blender/release/ui/buttons_data_mesh.py	2009-07-24 11:48:45 UTC (rev 21846)
@@ -49,14 +49,6 @@
 		sub.itemR(mesh, "vertex_normal_flip")
 		sub.itemR(mesh, "double_sided")
 
-		row = layout.row(align=True)
-		if context.edit_object:
-			row.itemO("MESH_OT_faces_shade_smooth")
-			row.itemO("MESH_OT_faces_shade_flat")
-		else:
-			row.itemO("OBJECT_OT_shade_smooth")
-			row.itemO("OBJECT_OT_shade_flat")
-
 class DATA_PT_vertex_groups(DataButtonsPanel):
 	__idname__ = "DATA_PT_vertex_groups"
 	__label__ = "Vertex Groups"

Modified: branches/blender2.5/blender/release/ui/space_view3d.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_view3d.py	2009-07-24 11:24:00 UTC (rev 21845)
+++ branches/blender2.5/blender/release/ui/space_view3d.py	2009-07-24 11:48:45 UTC (rev 21846)
@@ -73,7 +73,8 @@
 		
 		layout.itemS()
 		
-		layout.itemO("screen.screen_full_area")
+		layout.itemO("screen.region_foursplit", text="Toggle Quad View")
+		layout.itemO("screen.screen_full_area", text="Toggle Full Screen")
 
 class VIEW3D_HT_header(bpy.types.Header):
 	__space_type__ = "VIEW_3D"
@@ -101,6 +102,7 @@
 
 	def draw(self, context):
 		view = context.space_data
+		scene = context.scene
 		layout = self.layout
 		
 		split = layout.split()
@@ -113,6 +115,7 @@
 		col.itemL(text="Grid:")
 		col.itemR(view, "grid_spacing", text="Spacing")
 		col.itemR(view, "grid_subdivisions", text="Subdivisions")
+		col.itemR(scene, "cursor_location", text="3D Cursor:")
 		
 class VIEW3D_PT_3dview_display(bpy.types.Panel):
 	__space_type__ = "VIEW_3D"





More information about the Bf-blender-cvs mailing list