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...
This commit is contained in:
Bastien Montagne
2015-12-05 00:48:27 +01:00
parent 76d1201996
commit 258564a7b4

View File

@@ -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++;
}
}