[Bf-blender-cvs] [80454e38adc] soc-2021-curves: Removed vertex select when altering segment
dilithjay
noreply at git.blender.org
Fri Aug 6 05:15:10 CEST 2021
Commit: 80454e38adc917c121fcc96e7479d672a8dffe9a
Author: dilithjay
Date: Thu Aug 5 15:25:49 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB80454e38adc917c121fcc96e7479d672a8dffe9a
Removed vertex select when altering segment
===================================================================
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 3b47331c54c..aec5665570a 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -646,24 +646,6 @@ static bool is_curve_nearby(ViewContext *vc, wmOperator *op, const wmEvent *even
return false;
}
-static void deselect_all(Curve *cu)
-{
- LISTBASE_FOREACH (Nurb *, nu, &(cu->editnurb->nurbs)) {
- if (nu->type == CU_BEZIER) {
- BezTriple *bezt = nu->bezt;
- for (int i = 0; i < nu->pntsu; i++, bezt++) {
- bezt->f1 = bezt->f2 = bezt->f3 = 0;
- }
- }
- else {
- BPoint *bp = nu->bp;
- for (int i = 0; i < nu->pntsu; i++, bp++) {
- bp->f1 = 0;
- }
- }
- }
-}
-
/* Move segment to mouse pointer. */
static void move_segment(MoveSegmentData *seg_data, const wmEvent *event, ViewContext *vc)
{
@@ -901,7 +883,6 @@ static int curve_pen_modal(bContext *C, wmOperator *op, const wmEvent *event)
if (!retval) {
if (is_curve_nearby(&vc, op, event)) {
RNA_boolean_set(op->ptr, "moving_segment", true);
- deselect_all(obedit->data);
moving_segment = true;
}
else {
More information about the Bf-blender-cvs
mailing list