[Bf-blender-cvs] [ff82bb5e3a2] master: Curve Pen Tool: set the first newly added points active
Campbell Barton
noreply at git.blender.org
Mon Apr 4 04:57:09 CEST 2022
Commit: ff82bb5e3a27a7e16482ff8970a844fc63844d8e
Author: Campbell Barton
Date: Mon Apr 4 12:54:28 2022 +1000
Branches: master
https://developer.blender.org/rBff82bb5e3a27a7e16482ff8970a844fc63844d8e
Curve Pen Tool: set the first newly added points active
Other newly created points were already active, just not for newly
created curves.
===================================================================
M source/blender/editors/curve/editcurve_pen.c
===================================================================
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;
}
}
More information about the Bf-blender-cvs
mailing list