Fix T68375: Polyline: can not make segment (cyclic)

Reviewers: campbellbarton

Maniphest Tasks: T68375

Differential Revision: https://developer.blender.org/D5438
This commit is contained in:
Philipp Oeser 2019-08-08 13:56:07 +02:00
parent 3504b4c9c3
commit 2fb42816cf
Notes: blender-bot 2023-02-14 11:18:07 +01:00
Referenced by issue #68375, Polyline: can not make segment (cyclic)
1 changed files with 1 additions and 1 deletions

View File

@ -4784,7 +4784,7 @@ static int make_segment_exec(bContext *C, wmOperator *op)
BKE_nurb_handles_calc(nu1);
ok = true;
}
else if (nu1->type == CU_NURBS && nu1->bp->f1 & SELECT &&
else if (ELEM(nu1->type, CU_NURBS, CU_POLY) && nu1->bp->f1 & SELECT &&
(nu1->bp[nu1->pntsu - 1].f1 & SELECT)) {
nu1->flagu |= CU_NURB_CYCLIC;
BKE_nurb_knot_calc_u(nu1);