Commit: 21c4e8944b1d6aa212653bb5fef5002e920de787
Author: dilithjay
Date: Sat Nov 6 07:48:02 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB21c4e8944b1d6aa212653bb5fef5002e920de787
Minor cleanup
===================================================================
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 ff5a49e7bd7..2e2d3dfb4e0 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -986,9 +986,7 @@ static int curve_pen_modal(bContext *C, wmOperator *op,
const wmEvent *event)
delete_nurb(cu, nu);
}
}
- cu->actvert = CU_ACT_NONE;
-
- if (!found_point) {
+ else {
make_cut(event, cu, &nu, &vc);
}
@@ -997,8 +995,8 @@ static int curve_pen_modal(bContext *C, wmOperator *op,
const wmEvent *event)
}
}
else {
- /* Get currently selected point if any. Used for making spline cyclic.
*/
Curve *cu = vc.obedit->data;
+ /* Get currently selected point if any. Used for making spline cyclic.
*/
ED_curve_nurb_vert_selected_find(cu, vc.v3d, &nu, &bezt, &bp);
const bool found_point = ED_curve_editnurb_select_pick(
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs