[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45774] trunk/blender/source/blender/bmesh /operators/bmo_edgesplit.c: Fix #31009: edge split did not split non-manifold edges correctly, it should

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Apr 19 11:38:07 CEST 2012


Revision: 45774
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45774
Author:   blendix
Date:     2012-04-19 09:38:07 +0000 (Thu, 19 Apr 2012)
Log Message:
-----------
Fix #31009: edge split did not split non-manifold edges correctly, it should
create a separate edge for each face.

Modified Paths:
--------------
    trunk/blender/source/blender/bmesh/operators/bmo_edgesplit.c

Modified: trunk/blender/source/blender/bmesh/operators/bmo_edgesplit.c
===================================================================
--- trunk/blender/source/blender/bmesh/operators/bmo_edgesplit.c	2012-04-19 09:27:11 UTC (rev 45773)
+++ trunk/blender/source/blender/bmesh/operators/bmo_edgesplit.c	2012-04-19 09:38:07 UTC (rev 45774)
@@ -135,7 +135,11 @@
 			/* this flag gets copied so we can be sure duplicate edges get it too (important) */
 			BM_elem_flag_enable(e, BM_ELEM_INTERNAL_TAG);
 
-			bmesh_edge_separate(bm, e, e->l);
+			/* keep splitting until each loop has its own edge */
+			do {
+				bmesh_edge_separate(bm, e, e->l);
+			} while (!BM_edge_is_boundary(e));
+
 			BM_elem_flag_enable(e->v1, BM_ELEM_TAG);
 			BM_elem_flag_enable(e->v2, BM_ELEM_TAG);
 		}




More information about the Bf-blender-cvs mailing list