Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-08-08 14:56:07 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-08-08 16:13:49 +0300
commit2fb42816cf3ba0c1851142a2bd667b09f65963fa (patch)
tree1fbf574d44dd0f80855f6f21ca8ebdff186f930c /source/blender/editors
parent3504b4c9c324e001e461d1483275e25aa81dadb3 (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')
-rw-r--r--source/blender/editors/curve/editcurve.c2
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);