[Bf-blender-cvs] [ec0e00ae49a] soc-2021-curves: Fixed bug: Added extruding for `BPoint`

dilithjay noreply at git.blender.org
Sat Dec 25 18:13:27 CET 2021


Commit: ec0e00ae49acacf5c82f7835d45c91d87ca18d3f
Author: dilithjay
Date:   Sat Dec 25 22:07:01 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rBec0e00ae49acacf5c82f7835d45c91d87ca18d3f

Fixed bug: Added extruding for `BPoint`

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

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 43177be579d..1e0e7ed7470 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -754,16 +754,21 @@ static void extrude_point_from_selected_vertex(const ViewContext *vc,
   BPoint *bp = NULL;
   Curve *cu = vc->obedit->data;
 
-  float location[3];
-
   ED_curve_nurb_vert_selected_find(cu, vc->v3d, &nu, &bezt, &bp);
 
   if (nu && !extrude_center && nu->pntsu > 2) {
     for (int i = 1; i < nu->pntsu - 1; i++) {
-      BEZT_DESEL_ALL(nu->bezt + i);
+      if (nu->type == CU_BEZIER) {
+        BEZT_DESEL_ALL(nu->bezt + i);
+      }
+      else {
+        (nu->bp + i)->f1 = ~SELECT;
+      }
     }
   }
 
+  float location[3];
+
   if (bezt) {
     mul_v3_m4v3(location, vc->obedit->obmat, bezt->vec[1]);
   }



More information about the Bf-blender-cvs mailing list