[Bf-blender-cvs] [2fb42816cf3] master: Fix T68375: Polyline: can not make segment (cyclic)
Philipp Oeser
noreply at git.blender.org
Thu Aug 8 15:21:32 CEST 2019
Commit: 2fb42816cf3ba0c1851142a2bd667b09f65963fa
Author: Philipp Oeser
Date: Thu Aug 8 13:56:07 2019 +0200
Branches: master
https://developer.blender.org/rB2fb42816cf3ba0c1851142a2bd667b09f65963fa
Fix T68375: Polyline: can not make segment (cyclic)
Reviewers: campbellbarton
Maniphest Tasks: T68375
Differential Revision: https://developer.blender.org/D5438
===================================================================
M source/blender/editors/curve/editcurve.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list