Curve Pen Tool: set the first newly added points active

Other newly created points were already active, just not for newly
created curves.
This commit is contained in:
Campbell Barton 2022-04-04 12:54:28 +10:00
parent 0cb9926cd9
commit ff82bb5e3a
1 changed files with 4 additions and 0 deletions

View File

@ -1104,6 +1104,10 @@ static void extrude_points_from_selected_vertices(const ViewContext *vc,
Nurb *new_last_nu = editnurb->nurbs.last;
if (old_last_nu != new_last_nu) {
BKE_curve_nurb_vert_active_set(cu,
new_last_nu,
new_last_nu->bezt ? (const void *)new_last_nu->bezt :
(const void *)new_last_nu->bp);
new_last_nu->flagu = ~CU_NURB_CYCLIC;
}
}