diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-12-05 02:48:27 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-12-05 02:48:27 +0300 |
commit | 258564a7b4b26098dc2fabc28aa5a203d2754eff (patch) | |
tree | 70adcc51622e96cd934a08fe7b92bc985e95dd2d /source | |
parent | 76d1201996c9b23bc4cb8c1c6394081cb139ed06 (diff) |
Fix (unreported) Newly added grid's vertices not being selected.
`bmo_create_grid_exec` was not tagging created vertices with `MARK_VERT`, which seems
mandatory to get them selected? This sounds a bit hacky/odd to me, but that's what
all other primitive funcs do...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/operators/bmo_primitive.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_primitive.c b/source/blender/bmesh/operators/bmo_primitive.c index 944f26eb131..0ce645f80a7 100644 --- a/source/blender/bmesh/operators/bmo_primitive.c +++ b/source/blender/bmesh/operators/bmo_primitive.c @@ -262,7 +262,9 @@ void bmo_create_grid_exec(BMesh *bm, BMOperator *op) for (x = 0; x < xtot; x++) { vec[0] = ((x * xtot_inv2) - 1.0f) * dia; mul_v3_m4v3(tvec, mat, vec); - varr[i++] = BM_vert_create(bm, tvec, NULL, BM_CREATE_NOP); + varr[i] = BM_vert_create(bm, tvec, NULL, BM_CREATE_NOP); + BMO_elem_flag_enable(bm, varr[i], VERT_MARK); + i++; } } |