diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-04 05:54:28 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-04 05:55:56 +0300 |
commit | ff82bb5e3a27a7e16482ff8970a844fc63844d8e (patch) | |
tree | 1d992badaead930dc3819fa537d4e3044a040373 /source/blender/editors/curve/editcurve_pen.c | |
parent | 0cb9926cd9aefd9986d4b4f61ef6c577004f02d3 (diff) |
Curve Pen Tool: set the first newly added points active
Other newly created points were already active, just not for newly
created curves.
Diffstat (limited to 'source/blender/editors/curve/editcurve_pen.c')
-rw-r--r-- | source/blender/editors/curve/editcurve_pen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/curve/editcurve_pen.c b/source/blender/editors/curve/editcurve_pen.c index a2ec61633eb..e3a2bd479bb 100644 --- a/source/blender/editors/curve/editcurve_pen.c +++ b/source/blender/editors/curve/editcurve_pen.c @@ -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; } } |