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.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 0aac224bc68..65d624a253d 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -759,7 +759,6 @@ class IMAGE_HT_header(Header):
ima = sima.image
iuser = sima.image_user
tool_settings = context.tool_settings
- show_region_tool_header = sima.show_region_tool_header
show_render = sima.show_render
show_uvedit = sima.show_uvedit
@@ -772,8 +771,6 @@ class IMAGE_HT_header(Header):
# UV editing.
if show_uvedit:
- uvedit = sima.uv_editor
-
layout.prop(tool_settings, "use_uv_select_sync", text="")
if tool_settings.use_uv_select_sync:
@@ -781,15 +778,15 @@ class IMAGE_HT_header(Header):
else:
row = layout.row(align=True)
uv_select_mode = tool_settings.uv_select_mode[:]
- row.operator("uv.select_mode", text="", icon='UV_VERTEXSEL',
+ 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',
+ 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',
+ 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',
+ 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)
@@ -817,8 +814,6 @@ class IMAGE_HT_header(Header):
sub.popover(panel="IMAGE_PT_overlay", text="")
if show_uvedit:
- uvedit = sima.uv_editor
-
mesh = context.edit_object.data
layout.prop_search(mesh.uv_layers, "active", mesh, "uv_layers", text="")