[Bf-blender-cvs] [d60ff6c] master: Fix for own last commit

Campbell Barton noreply at git.blender.org
Tue Apr 7 12:29:47 CEST 2015


Commit: d60ff6c112b1c5d3819676109b0080a316850eb0
Author: Campbell Barton
Date:   Tue Apr 7 20:26:42 2015 +1000
Branches: master
https://developer.blender.org/rBd60ff6c112b1c5d3819676109b0080a316850eb0

Fix for own last commit

resolved bug but wasn't correct

===================================================================

M	source/blender/bmesh/tools/bmesh_region_match.c

===================================================================

diff --git a/source/blender/bmesh/tools/bmesh_region_match.c b/source/blender/bmesh/tools/bmesh_region_match.c
index e9686ec..4322a28 100644
--- a/source/blender/bmesh/tools/bmesh_region_match.c
+++ b/source/blender/bmesh/tools/bmesh_region_match.c
@@ -617,13 +617,14 @@ static unsigned int bm_uuidwalk_init_from_edge(
 	 * elsewhere using LinkNode's makes more sense */
 	for (i = 0; i < f_arr_len; ) {
 		LinkNode *faces_pass = NULL;
+		const unsigned int i_init = i;
 		const int f_len = f_arr[i]->len;
 
 		do {
 			BLI_linklist_prepend_pool(&faces_pass, f_arr[i++], uuidwalk->link_pool);
 		} while (i < f_arr_len && (f_len == f_arr[i]->len));
 
-		bm_uuidwalk_pass_add(uuidwalk, faces_pass, i);
+		bm_uuidwalk_pass_add(uuidwalk, faces_pass, i - i_init);
 		BLI_linklist_free_pool(faces_pass, NULL, uuidwalk->link_pool);
 		fstep_num += 1;
 	}




More information about the Bf-blender-cvs mailing list