Fix problem extruding curve segments with selected handles

Issue introduced in 38685b5a39
This commit is contained in:
Campbell Barton 2020-04-01 17:08:41 +11:00
parent 8d116e9956
commit 9bcc83a5d6
1 changed files with 6 additions and 0 deletions

View File

@ -5401,6 +5401,12 @@ static bool ed_editcurve_extrude(Curve *cu, EditNurb *editnurb, View3D *v3d)
i = 0;
for (bezt = &nu->bezt[0]; i < pnt_len; i++, bezt++) {
bool is_selected = BEZT_ISSEL_ANY_HIDDENHANDLES(v3d, bezt);
/* While this gets de-selected, selecting here ensures newly created verts are selected.
* without this, the vertices are copied but only the handles are transformed.
* which seems buggy from a user perspective. */
if (is_selected) {
bezt->f2 |= SELECT;
}
if (bezt_prev && is_prev_selected != is_selected) {
int count = i - offset + 1;
if (is_prev_selected) {