Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 5b840fae341..0aac224bc68 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -779,7 +779,17 @@ class IMAGE_HT_header(Header):
if tool_settings.use_uv_select_sync:
layout.template_edit_mode_selection()
else:
- layout.prop(tool_settings, "uv_select_mode", text="", expand=True)
+ row = layout.row(align=True)
+ uv_select_mode = tool_settings.uv_select_mode[:]
+ row.operator("uv.select_mode", text="", icon='UV_VERTEXSEL',
+ depress=(uv_select_mode == 'VERTEX')).type = 'VERTEX'
+ row.operator("uv.select_mode", text="", icon='UV_EDGESEL',
+ depress=(uv_select_mode == 'EDGE')).type = 'EDGE'
+ row.operator("uv.select_mode", text="", icon='UV_FACESEL',
+ depress=(uv_select_mode == 'FACE')).type = 'FACE'
+ row.operator("uv.select_mode", text="", icon='UV_ISLANDSEL',
+ depress=(uv_select_mode == 'ISLAND')).type = 'ISLAND'
+
layout.prop(tool_settings, "uv_sticky_select_mode", icon_only=True)
IMAGE_MT_editor_menus.draw_collapsible(context, layout)