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:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-08-11 19:02:11 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-08-11 19:02:37 +0300
commit11509c14c38bdc818f60037921f3455ff626d61b (patch)
treecbd057861632e16b8eeed69d6956757448bfeeea /source/blender/bmesh/intern/bmesh_query.c
parent304f0f56c517373aaeb43f8e27c4ff4c26afb33b (diff)
Fix T75588: Missing loop cuts preview for edges without quads
The preview of points was only done when the edge is wire. Now the preview of points is done when the edge is not connected to any quad. Also to avoid edge slide in this case, all new vertices created in this specific case are not selected. Differential Revision: https://developer.blender.org/D7457
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_query.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_query.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_query.c b/source/blender/bmesh/intern/bmesh_query.c
index a9d1972bd7e..61a81e56a2e 100644
--- a/source/blender/bmesh/intern/bmesh_query.c
+++ b/source/blender/bmesh/intern/bmesh_query.c
@@ -2511,6 +2511,22 @@ bool BM_face_is_any_edge_flag_test(const BMFace *f, const char hflag)
return false;
}
+bool BM_edge_is_any_face_len_test(const BMEdge *e, const int len)
+{
+ if (e->l) {
+ BMLoop *l_iter, *l_first;
+
+ l_iter = l_first = e->l;
+ do {
+ if (l_iter->f->len == len) {
+ return true;
+ }
+ } while ((l_iter = l_iter->radial_next) != l_first);
+ }
+
+ return false;
+}
+
/**
* Use within assert's to check normals are valid.
*/