diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-21 08:46:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-21 08:46:14 +0300 |
commit | b31d3d1202fed37caed333b829bb53d88fe97c9e (patch) | |
tree | b23a1d0daa1b75386dbbb4dcd9fa3346cdb372b6 /source/blender | |
parent | 2bc1fd7e91814b3f90444e27b9e9ee37d1b28b8e (diff) |
Fix UV edge/face sync selection from recent sticky select cleanup
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_select.c | 12 |
1 files changed, 12 insertions, 0 deletions
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); |