[Bf-blender-cvs] [4f597024cd4] refactor-mesh-uv-map-generic: Add clarifying comment

Martijn Versteegh noreply at git.blender.org
Thu Jan 5 20:15:48 CET 2023


Commit: 4f597024cd46297ae4d711fba1128551a9fc8614
Author: Martijn Versteegh
Date:   Thu Jan 5 19:48:34 2023 +0100
Branches: refactor-mesh-uv-map-generic
https://developer.blender.org/rB4f597024cd46297ae4d711fba1128551a9fc8614

Add clarifying comment

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

M	source/blender/editors/mesh/mesh_data.cc

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

diff --git a/source/blender/editors/mesh/mesh_data.cc b/source/blender/editors/mesh/mesh_data.cc
index 84bfad97bfc..1adf1354130 100644
--- a/source/blender/editors/mesh/mesh_data.cc
+++ b/source/blender/editors/mesh/mesh_data.cc
@@ -342,6 +342,8 @@ const bool *ED_mesh_uv_map_get_vert_select(const Mesh *mesh, const int uv_index)
   const char *uv_name = CustomData_get_layer_name(&mesh->ldata, CD_PROP_FLOAT2, uv_index);
   return mesh_loop_boolean_custom_data_get_by_name(*mesh, BKE_uv_map_vert_selection_name_get(uv_name, buffer));
 }
+/* UV map edge selections are stored on face corners (loops) and not on edges
+ * because we need selections per face edge, even when the edge is split in UV space. */
 const bool *ED_mesh_uv_map_get_edge_select(const Mesh *mesh, const int uv_index)
 {
   using namespace blender::bke;
@@ -349,6 +351,7 @@ const bool *ED_mesh_uv_map_get_edge_select(const Mesh *mesh, const int uv_index)
   const char *uv_name = CustomData_get_layer_name(&mesh->ldata, CD_PROP_FLOAT2, uv_index);
   return mesh_loop_boolean_custom_data_get_by_name(*mesh, BKE_uv_map_edge_selection_name_get(uv_name, buffer));
 }
+
 const bool *ED_mesh_uv_map_get_pin(const Mesh *mesh, const int uv_index)
 {
   using namespace blender::bke;



More information about the Bf-blender-cvs mailing list