forked from bartvdbraak/blender
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.
This commit is contained in:
parent
84c8992e61
commit
bd628d9c0c
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user