[Bf-blender-cvs] [0d69c977d67] temp-uvunwrap-selection: UV: Unwrap now uses UV selection.

Chris Blackbourn noreply at git.blender.org
Thu May 12 22:38:39 CEST 2022


Commit: 0d69c977d67d546822c56706baa80d02d33f60f5
Author: Chris Blackbourn
Date:   Thu May 12 17:53:56 2022 +1200
Branches: temp-uvunwrap-selection
https://developer.blender.org/rB0d69c977d67d546822c56706baa80d02d33f60f5

UV: Unwrap now uses UV selection.

Brings us closer to T78394.

===================================================================

M	source/blender/editors/uvedit/uvedit_unwrap_ops.c

===================================================================

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. */
 }



More information about the Bf-blender-cvs mailing list