From 18d18b5a986724d43f45bac63a98400741e8e12a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 16 Feb 2022 13:46:00 +1100 Subject: UV: move sticky selection from image space into tool settings Having this setting stored in the image space caused low level selection logic to have to pass around the image space (which could be NULL in some cases). Use the tool-settings instead since there doesn't seem to be much/any advantage in having this setting per-space. --- release/scripts/startup/bl_ui/space_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 16e3f32e88a..5b840fae341 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -780,7 +780,7 @@ class IMAGE_HT_header(Header): layout.template_edit_mode_selection() else: layout.prop(tool_settings, "uv_select_mode", text="", expand=True) - layout.prop(uvedit, "sticky_select_mode", icon_only=True) + layout.prop(tool_settings, "uv_sticky_select_mode", icon_only=True) IMAGE_MT_editor_menus.draw_collapsible(context, layout) -- cgit v1.2.3