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:
authorChris Blackbourn <chrisbblend@gmail.com>2022-05-12 08:53:56 +0300
committerChris Blackbourn <chrisbblend@gmail.com>2022-05-12 23:29:29 +0300
commit0d69c977d67d546822c56706baa80d02d33f60f5 (patch)
treebad2f5ef7e42e90d36de568b8c1d5e1e4e8c33af
parent0d0e2e766416b1431fb9cd9ec3db7f8cb08e54fe (diff)
UV: Unwrap now uses UV selection.temp-uvunwrap-selection
Brings us closer to T78394.
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 1806eac09a4..e64454e30d9 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -359,6 +359,17 @@ static bool is_face_affected(const Scene *scene,
return false; /* No uvs are selected. */
}
+ if (options->only_selected_uvs) {
+ BMLoop *l;
+ BMIter liter;
+ BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) {
+ if (!uvedit_uv_select_test(scene, l, cd_loop_uv_offset)) {
+ return false; /* At least one uv is deselected. */
+ }
+ }
+ return true; /* All uvs are selected. */
+ }
+
return true; /* Default is to assume affected. */
}