UI
authorWilliam Reynish <william@reynish.com>
Fri, 24 Jul 2009 11:48:45 +0000 (11:48 +0000)
committerWilliam Reynish <william@reynish.com>
Fri, 24 Jul 2009 11:48:45 +0000 (11:48 +0000)
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.

release/ui/buttons_data_mesh.py
release/ui/space_view3d.py

index 757745d039ea87db0d4bf7734699bc7f49a3f49f..d4bf9698a895d3d9326286df17ae350a857af94f 100644 (file)
@@ -49,14 +49,6 @@ class DATA_PT_normals(DataButtonsPanel):
                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"
index 39d8b86613fc122c70acafe638e7a2c908c11792..4d5d7a03c0753e7252edf99c26325f148f42f359 100644 (file)
@@ -73,7 +73,8 @@ class VIEW3D_MT_view(bpy.types.Menu):
                
                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 @@ class VIEW3D_PT_3dview_properties(bpy.types.Panel):
 
        def draw(self, context):
                view = context.space_data
+               scene = context.scene
                layout = self.layout
                
                split = layout.split()
@@ -113,6 +115,7 @@ class VIEW3D_PT_3dview_properties(bpy.types.Panel):
                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"