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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-10-16 07:21:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-16 07:21:55 +0400
commit1ae0de2f3af194153e73103ea3067283269d0350 (patch)
treeb6eaf9b1fefb4b3634e179b655e22e8602bb7518 /source
parent4ae564bfa68dec93e07057ec42c5c4362abf1b73 (diff)
fix [#37013] Mesh > bisect can't fill the cut if it lines up with two or more adjacent vertices
Diffstat (limited to 'source')
-rw-r--r--source/blender/bmesh/tools/bmesh_bisect_plane.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bisect_plane.c b/source/blender/bmesh/tools/bmesh_bisect_plane.c
index 9cfe17d6413..c3c2924ea8e 100644
--- a/source/blender/bmesh/tools/bmesh_bisect_plane.c
+++ b/source/blender/bmesh/tools/bmesh_bisect_plane.c
@@ -372,7 +372,7 @@ void BM_mesh_bisect_plane(BMesh *bm, float plane[4],
BM_VERT_DIR(v_new) = 0;
BM_VERT_DIST(v_new) = 0.0f;
}
- else {
+ else if (side[0] == 0 || side[1] == 0) {
/* check if either edge verts are aligned,
* if so - tag and push all faces that use it into the stack */
unsigned int j;
@@ -394,6 +394,13 @@ void BM_mesh_bisect_plane(BMesh *bm, float plane[4],
}
}
}
+
+ /* if both verts are on the center - tag it */
+ if (oflag_center) {
+ if (side[0] == 0 && side[1] == 0) {
+ BMO_elem_flag_enable(bm, e, oflag_center);
+ }
+ }
}
}