diff options
author | William Reynish <william@reynish.com> | 2009-07-24 15:48:45 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2009-07-24 15:48:45 +0400 |
commit | bd628d9c0cd452321bf7e204f4b245ce37643a55 (patch) | |
tree | d99473c2679293ead01cc2f17a4a57ee40823939 | |
parent | 84c8992e613a6c6821f6d384f852a639ebdbe5c7 (diff) |
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.
-rw-r--r-- | release/ui/buttons_data_mesh.py | 8 | ||||
-rw-r--r-- | release/ui/space_view3d.py | 5 |
2 files changed, 4 insertions, 9 deletions
diff --git a/release/ui/buttons_data_mesh.py b/release/ui/buttons_data_mesh.py index 757745d039e..d4bf9698a89 100644 --- a/release/ui/buttons_data_mesh.py +++ b/release/ui/buttons_data_mesh.py @@ -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" diff --git a/release/ui/space_view3d.py b/release/ui/space_view3d.py index 39d8b86613f..4d5d7a03c07 100644 --- a/release/ui/space_view3d.py +++ b/release/ui/space_view3d.py @@ -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" |