From b31d3d1202fed37caed333b829bb53d88fe97c9e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 21 Jul 2020 15:46:14 +1000 Subject: Fix UV edge/face sync selection from recent sticky select cleanup --- source/blender/editors/uvedit/uvedit_select.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source') diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c index 2a6c5a67b1d..92e110b0998 100644 --- a/source/blender/editors/uvedit/uvedit_select.c +++ b/source/blender/editors/uvedit/uvedit_select.c @@ -220,6 +220,12 @@ void uvedit_face_select_set_with_sticky(const SpaceImage *sima, const bool do_history, const int cd_loop_uv_offset) { + const ToolSettings *ts = scene->toolsettings; + if (ts->uv_flag & UV_SYNC_SELECTION) { + uvedit_face_select_set(scene, em, efa, select, do_history, cd_loop_uv_offset); + return; + } + BMLoop *l_iter, *l_first; l_iter = l_first = BM_FACE_FIRST_LOOP(efa); do { @@ -324,6 +330,12 @@ void uvedit_edge_select_set_with_sticky(const struct SpaceImage *sima, const bool do_history, const uint cd_loop_uv_offset) { + const ToolSettings *ts = scene->toolsettings; + if (ts->uv_flag & UV_SYNC_SELECTION) { + uvedit_edge_select_set(scene, em, l, select, do_history, cd_loop_uv_offset); + return; + } + uvedit_uv_select_set_with_sticky(sima, scene, em, l, select, do_history, cd_loop_uv_offset); uvedit_uv_select_set_with_sticky( sima, scene, em, l->next, select, do_history, cd_loop_uv_offset); -- cgit v1.2.3