[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43942] branches/bmesh/blender/source/ blender/bmesh/intern/bmesh_polygon.c: BMesh: Bugfix for infinite loop in r43937.

Nicholas Bishop nicholasbishop at gmail.com
Tue Feb 7 02:50:26 CET 2012


Revision: 43942
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43942
Author:   nicholasbishop
Date:     2012-02-07 01:50:25 +0000 (Tue, 07 Feb 2012)
Log Message:
-----------
BMesh: Bugfix for infinite loop in r43937.

Infinite loop occured when quad-to-triangles operator.

The iterator increment in the do/while conditional gets executed after
the continue, so the iterator was getting double-incremented and thus
could skip past the first loop.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43937

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c

Modified: branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c	2012-02-07 01:46:47 UTC (rev 43941)
+++ branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c	2012-02-07 01:50:25 UTC (rev 43942)
@@ -763,7 +763,6 @@
 	do {
 		i = BM_GetIndex(l_iter->v);
 		if (i == v1i || i == v2i || i == v3i) {
-			l_iter = l_iter->next;
 			continue;
 		}
 		




More information about the Bf-blender-cvs mailing list