diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-08-03 09:14:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-08-03 09:14:22 +0300 |
commit | 1dd4e933d817155f53e3715f539546ca777ed41c (patch) | |
tree | 8ff4c44449240397d0b262c1e60feba490fb9a59 /source/blender/editors | |
parent | 88d63905a833a5e89c2860b10db43d1f7966594c (diff) |
Fix grid-fill offset option
Wasn't applied relative to the active vertex.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 7f5223426b6..bc12ab33fc5 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -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); |