[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60792] trunk/blender/source/blender/bmesh /tools/bmesh_bisect_plane.c: fix [#37013] Mesh > bisect can' t fill the cut if it lines up with two or more adjacent vertices

Campbell Barton ideasman42 at gmail.com
Wed Oct 16 05:21:56 CEST 2013


Revision: 60792
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60792
Author:   campbellbarton
Date:     2013-10-16 03:21:55 +0000 (Wed, 16 Oct 2013)
Log Message:
-----------
fix [#37013] Mesh > bisect can't fill the cut if it lines up with two or more adjacent vertices

Modified Paths:
--------------
    trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c

Modified: trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c
===================================================================
--- trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c	2013-10-16 01:49:11 UTC (rev 60791)
+++ trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c	2013-10-16 03:21:55 UTC (rev 60792)
@@ -372,7 +372,7 @@
 			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 @@
 					}
 				}
 			}
+
+			/* 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);
+				}
+			}
 		}
 	}
 




More information about the Bf-blender-cvs mailing list