[Bf-blender-cvs] [dbc41b30f88] soc-2021-uv-edge-select-support: Merge branch 'master' into soc-2021-uv-edge-select-support
Siddhartha Jejurkar
noreply at git.blender.org
Fri Dec 17 14:02:50 CET 2021
Commit: dbc41b30f88b96f7d8c6e995b17f5930eb55cc77
Author: Siddhartha Jejurkar
Date: Fri Dec 17 18:31:32 2021 +0530
Branches: soc-2021-uv-edge-select-support
https://developer.blender.org/rBdbc41b30f88b96f7d8c6e995b17f5930eb55cc77
Merge branch 'master' into soc-2021-uv-edge-select-support
===================================================================
===================================================================
diff --cc source/blender/editors/uvedit/uvedit_intern.h
index 9bc8a165b1f,1fa96a932ed..0a0dd9a133b
--- a/source/blender/editors/uvedit/uvedit_intern.h
+++ b/source/blender/editors/uvedit/uvedit_intern.h
@@@ -92,9 -91,17 +92,18 @@@ bool uv_find_nearest_edge_multi(struct
struct Object **objects,
const uint objects_len,
const float co[2],
+ const float penalty,
struct UvNearestHit *hit);
+ /**
+ * \param only_in_face: when true, only hit faces which `co` is inside.
+ * This gives users a result they might expect, especially when zoomed in.
+ *
+ * \note Concave faces can cause odd behavior, although in practice this isn't often an issue.
+ * The center can be outside the face, in this case the distance to the center
+ * could cause the face to be considered too far away.
+ * If this becomes an issue we could track the distance to the faces closest edge.
+ */
bool uv_find_nearest_face_ex(struct Scene *scene,
struct Object *obedit,
const float co[2],
More information about the Bf-blender-cvs
mailing list