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
This commit is contained in:
parent
ff51afb194
commit
2a23addf52
Notes:
blender-bot
2023-02-14 06:25:25 +01:00
Referenced by issue #83122, NURBS: Extruding multiple points only moves existing points
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue