[Bf-blender-cvs] [2a23addf522] master: Fix T83122: NURBS Extruding multiple points only moves existing points

Janusch Patas noreply at git.blender.org
Tue Jan 12 11:01:03 CET 2021


Commit: 2a23addf522c9d7273a7fb78121d6118f5b4e560
Author: Janusch Patas
Date:   Tue Jan 12 10:56:21 2021 +0100
Branches: master
https://developer.blender.org/rB2a23addf522c9d7273a7fb78121d6118f5b4e560

Fix  T83122: NURBS Extruding multiple points only moves existing points

The Surface -> Nurbs Curve behaves now like the Curve -> Nurbs Curve,
if you initially select less than all points. So, multiple points can
be selected and extruded which just moves the selected points similar
to Curve -> Nurbs Curve object.

Differential Revision: https://developer.blender.org/D9934

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

M	source/blender/editors/curve/editcurve.c

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

diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index 2b627971286..e9ceedf7ce2 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -5698,7 +5698,7 @@ static int curve_extrude_exec(bContext *C, wmOperator *UNUSED(op))
     /* First test: curve? */
     if (obedit->type != OB_CURVE) {
       LISTBASE_FOREACH (Nurb *, nu, &editnurb->nurbs) {
-        if ((nu->pntsv == 1) && (ED_curve_nurb_select_count(v3d, nu) == 1)) {
+        if ((nu->pntsv == 1) && (ED_curve_nurb_select_count(v3d, nu) < nu->pntsu)) {
           as_curve = true;
           break;
         }



More information about the Bf-blender-cvs mailing list