Fix grid-fill offset option

Wasn't applied relative to the active vertex.
This commit is contained in:
Campbell Barton 2015-08-03 16:14:22 +10:00
parent 88d63905a8
commit 1dd4e933d8
1 changed files with 4 additions and 2 deletions

View File

@ -3476,13 +3476,15 @@ static void edbm_fill_grid_prepare(BMesh *bm, int offset, int *r_span, bool span
v_act = v_act_link->data;
}
/* set this vertex first */
BLI_listbase_rotate_first(verts, v_act_link);
if (offset != 0) {
v_act_link = BLI_findlink(verts, offset);
v_act = v_act_link->data;
BLI_listbase_rotate_first(verts, v_act_link);
}
/* set this vertex first */
BLI_listbase_rotate_first(verts, v_act_link);
BM_edgeloop_edges_get(el_store, edges);