diff options
author | Janusch Patas <patjan> | 2021-01-12 12:56:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-01-12 12:56:51 +0300 |
commit | 2a23addf522c9d7273a7fb78121d6118f5b4e560 (patch) | |
tree | 8a62fe69a01f250f0c372afd8671da69f85f461a /source | |
parent | ff51afb194493270c93535adc1580ee8eb0cacda (diff) |
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
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |