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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user