- UV header sync selection vert/edge/face buttons were displayed as 3 tickboxes

- fix for all of them being able to be disabled at once.
- 3D header now uses the rna buttons.
This commit is contained in:
Campbell Barton
2010-01-16 14:31:21 +00:00
parent 2ca119c66d
commit 6a8dc9bdec
4 changed files with 49 additions and 51 deletions

View File

@@ -30,7 +30,7 @@ class VIEW3D_HT_header(bpy.types.Header):
mode_string = context.mode
edit_object = context.edit_object
obj = context.active_object
toolsettings = context.scene.tool_settings
toolsettings = context.tool_settings
row = layout.row()
row.template_header()
@@ -56,6 +56,12 @@ class VIEW3D_HT_header(bpy.types.Header):
row.template_header_3D()
if obj and obj.mode == 'EDIT' and obj.type == 'MESH':
row_sub = row.row(align=True)
row_sub.prop(toolsettings, "mesh_selection_mode", text="", index=0, icon='VERTEXSEL')
row_sub.prop(toolsettings, "mesh_selection_mode", text="", index=1, icon='EDGESEL')
row_sub.prop(toolsettings, "mesh_selection_mode", text="", index=2, icon='FACESEL')
# Particle edit
if obj and obj.mode == 'PARTICLE_EDIT':
row.prop(toolsettings.particle_edit, "selection_mode", text="", expand=True, toggle=True)