diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-07 13:26:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-07 13:27:08 +0300 |
commit | d60ff6c112b1c5d3819676109b0080a316850eb0 (patch) | |
tree | eb6ce7385c2799920d170e60c72000a3408199fd | |
parent | 34818a44b282f44e22205507dabee1e37c6312ab (diff) |
Fix for own last commit
resolved bug but wasn't correct
-rw-r--r-- | source/blender/bmesh/tools/bmesh_region_match.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/bmesh/tools/bmesh_region_match.c b/source/blender/bmesh/tools/bmesh_region_match.c index e9686ec5a54..4322a288471 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; } |