diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-04 03:03:36 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-04 03:07:37 +0300 |
commit | 0a4fdcbb5fe3b33a276d2ab54a1e68db0fe24fd4 (patch) | |
tree | 82e9335bb27bd9917baf7d9a714f5575505b8937 /release/scripts/startup/bl_ui/space_image.py | |
parent | 6bca614fd877f9c0fa0c1ddf5361f5c6218d690d (diff) |
Cleanup: unused Python variables & imports
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 15 |
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="") |