[Bf-blender-cvs] [9047c036882] soc-2021-curves: Fixed bug: moving handle moves entire point
Dilith Jayakody
noreply at git.blender.org
Thu Feb 24 04:44:10 CET 2022
Commit: 9047c036882e5a36da005b976bea6769468146b3
Author: Dilith Jayakody
Date: Mon Feb 14 11:45:22 2022 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB9047c036882e5a36da005b976bea6769468146b3
Fixed bug: moving handle moves entire point
===================================================================
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 84712433e26..310aa54f1a3 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -1547,13 +1547,12 @@ static int curve_pen_modal(bContext *C, wmOperator *op, const wmEvent *event)
else if (ELEM(event->type, LEFTMOUSE)) {
if (ELEM(event->val, KM_PRESS, KM_DBL_CLICK)) {
/* Get the details of points selected at the start of the operation.
- * Used for closing the spline when endpoints are clicked consecutively. */
- if (close_spline) {
- get_selected_points(cu, vc.v3d, &nu, &bezt, &bp);
- cpd->nu = nu;
- cpd->bezt = bezt;
- cpd->bp = bp;
- }
+ * Used for closing the spline when endpoints are clicked consecutively and for selecting a
+ * single point. */
+ get_selected_points(cu, vc.v3d, &nu, &bezt, &bp);
+ cpd->nu = nu;
+ cpd->bezt = bezt;
+ cpd->bp = bp;
/* Get the details of the vertex closest to the mouse at the start of the operation. */
Nurb *nu1;
More information about the Bf-blender-cvs
mailing list