[Bf-blender-cvs] [1dd4e93] master: Fix grid-fill offset option

Campbell Barton noreply at git.blender.org
Mon Aug 3 09:55:15 CEST 2015


Commit: 1dd4e933d817155f53e3715f539546ca777ed41c
Author: Campbell Barton
Date:   Mon Aug 3 16:14:22 2015 +1000
Branches: master
https://developer.blender.org/rB1dd4e933d817155f53e3715f539546ca777ed41c

Fix grid-fill offset option

Wasn't applied relative to the active vertex.

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

M	source/blender/editors/mesh/editmesh_tools.c

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

diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 7f52234..bc12ab3 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);




More information about the Bf-blender-cvs mailing list