From 2a23addf522c9d7273a7fb78121d6118f5b4e560 Mon Sep 17 00:00:00 2001 From: Janusch Patas Date: Tue, 12 Jan 2021 10:56:21 +0100 Subject: 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 --- source/blender/editors/curve/editcurve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/curve') 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; } -- cgit v1.2.3