[Bf-blender-cvs] [1904dc8a83e] soc-2021-curves: Fixed bug moving newly inserted points

Dilith Jayakody noreply at git.blender.org
Fri Feb 4 18:41:17 CET 2022


Commit: 1904dc8a83e6c5a83806ee76ab7ef0f6cf654526
Author: Dilith Jayakody
Date:   Thu Feb 3 22:33:41 2022 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB1904dc8a83e6c5a83806ee76ab7ef0f6cf654526

Fixed bug moving newly inserted points

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

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 a1b39fc17c1..9cd461c8a1d 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -1178,9 +1178,6 @@ static void extrude_points_from_selected_vertices(const ViewContext *vc,
   if (bezt) {
     bezt->h1 = extrude_handle;
     bezt->h2 = extrude_handle;
-
-    BEZT_DESEL_ALL(bezt);
-    BEZT_SEL_IDX(bezt, is_last_bezt(nu, bezt) ? 2 : 0);
   }
   FOREACH_SELECTED_BEZT_END
 }
@@ -1599,6 +1596,8 @@ static int curve_pen_modal(bContext *C, wmOperator *op, const wmEvent *event)
         bezt->h1 = bezt->h2 = HD_ALIGN;
         copy_v3_v3(bezt->vec[0], bezt->vec[1]);
         copy_v3_v3(bezt->vec[2], bezt->vec[1]);
+        BEZT_DESEL_ALL(bezt);
+        BEZT_SEL_IDX(bezt, is_last_bezt(nu, bezt) ? 2 : 0);
         FOREACH_SELECTED_BEZT_END
       }
     }



More information about the Bf-blender-cvs mailing list