[Bf-blender-cvs] [b300a334115] soc-2021-curves: Fixed bug with extruded point selection

Dilith Jayakody noreply at git.blender.org
Sat Feb 5 16:14:32 CET 2022


Commit: b300a334115afd5b4b9919ee141413ddbbf66bc8
Author: Dilith Jayakody
Date:   Sat Feb 5 20:44:19 2022 +0530
Branches: soc-2021-curves
https://developer.blender.org/rBb300a334115afd5b4b9919ee141413ddbbf66bc8

Fixed bug with extruded point selection

===================================================================

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 5112a3f0a17..26b05bccd85 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -979,7 +979,7 @@ static void extrude_vertices_from_selected_endpoints(EditNurb *editnurb,
           BPoint *new_bp = (BPoint *)MEM_mallocN((nu1->pntsu + 2) * sizeof(BPoint), __func__);
           ED_curve_bpcpy(editnurb, new_bp, nu1->bp, 1);
           ED_curve_bpcpy(editnurb, new_bp + nu1->pntsu + 1, last_bp, 1);
-          new_bp->f1 &= ~SELECT;
+          nu1->bp->f1 &= ~SELECT;
           last_bp->f1 &= ~SELECT;
           ED_curve_bpcpy(editnurb, new_bp + 1, nu1->bp, nu1->pntsu);
           add_v3_v3(new_bp->vec, disp_3d);
@@ -991,7 +991,7 @@ static void extrude_vertices_from_selected_endpoints(EditNurb *editnurb,
         else {
           BPoint *new_bp = (BPoint *)MEM_mallocN((nu1->pntsu + 1) * sizeof(BPoint), __func__);
           ED_curve_bpcpy(editnurb, new_bp, nu1->bp, 1);
-          new_bp->f1 &= ~SELECT;
+          nu1->bp->f1 &= ~SELECT;
           ED_curve_bpcpy(editnurb, new_bp + 1, nu1->bp, nu1->pntsu);
           add_v3_v3(new_bp->vec, disp_3d);
           MEM_freeN(nu1->bp);



More information about the Bf-blender-cvs mailing list