diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-08-08 14:56:07 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-08-08 16:13:49 +0300 |
commit | 2fb42816cf3ba0c1851142a2bd667b09f65963fa (patch) | |
tree | 1fbf574d44dd0f80855f6f21ca8ebdff186f930c /source/blender/editors/curve | |
parent | 3504b4c9c324e001e461d1483275e25aa81dadb3 (diff) |
Fix T68375: Polyline: can not make segment (cyclic)
Reviewers: campbellbarton
Maniphest Tasks: T68375
Differential Revision: https://developer.blender.org/D5438
Diffstat (limited to 'source/blender/editors/curve')
-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 047b78af7b1..c4bb5eec723 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -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); |