[Bf-blender-cvs] [a14e1f3a9ed] soc-2021-curves: Fixed select and recalc bugs

Dilith Jayakody noreply at git.blender.org
Sat Jan 15 11:03:56 CET 2022


Commit: a14e1f3a9ed9eb81fe56d1523fa297196851e248
Author: Dilith Jayakody
Date:   Sat Jan 15 10:47:47 2022 +0530
Branches: soc-2021-curves
https://developer.blender.org/rBa14e1f3a9ed9eb81fe56d1523fa297196851e248

Fixed select and recalc bugs

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

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 86d7f6197ab..484f1b1a263 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -57,6 +57,7 @@
   } \
   } \
   } \
+  BKE_nurb_handles_calc(nu); \
   }
 
 /* Data structure to keep track of details about the cut location */
@@ -1501,7 +1502,12 @@ static int curve_pen_modal(bContext *C, wmOperator *op, const wmEvent *event)
           (bezt || (bezt1 && !BEZT_ISSEL_IDX(bezt1, bezt_idx)) || (bp1 && !(bp1->f1 & SELECT)))) {
         ED_curve_deselect_all(cu->editnurb);
         if (bezt1) {
-          BEZT_SEL_IDX(bezt1, bezt_idx);
+          if (bezt_idx == 1) {
+            BEZT_SEL_ALL(bezt1);
+          }
+          else {
+            BEZT_SEL_IDX(bezt1, bezt_idx);
+          }
         }
         else if (bp1) {
           bp1->f1 |= SELECT;



More information about the Bf-blender-cvs mailing list