Commit: b8220880148412feab5ddcf85afd1b9f897a178f Author: Falk David Date: Sat Jul 11 17:08:24 2020 +0200 Branches: soc-2020-greasepencil-curve https://developer.blender.org/rBb8220880148412feab5ddcf85afd1b9f897a178f
GPencil: Fix curve handles not updating When the handle types of the first and last handles of a cyclic curve were changed, the handles did not update correctly. =================================================================== M source/blender/editors/gpencil/gpencil_edit_curve.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_edit_curve.c b/source/blender/editors/gpencil/gpencil_edit_curve.c index fb8e608551d..b8d2ecf2474 100644 --- a/source/blender/editors/gpencil/gpencil_edit_curve.c +++ b/source/blender/editors/gpencil/gpencil_edit_curve.c @@ -164,7 +164,6 @@ static int gpencil_editcurve_set_handle_type_exec(bContext *C, wmOperator *op) if (bezt->f2 & SELECT) { bezt->h1 = handle_type; bezt->h2 = handle_type; - BKE_nurb_handle_calc(bezt, bezt_prev, bezt_next, false, 0); } else { if (bezt->f1 & SELECT) { @@ -173,13 +172,13 @@ static int gpencil_editcurve_set_handle_type_exec(bContext *C, wmOperator *op) if (bezt->f3 & SELECT) { bezt->h2 = handle_type; } - BKE_nurb_handle_calc(bezt, bezt_prev, bezt_next, false, 0); } - - gps->flag |= GP_STROKE_NEEDS_CURVE_UPDATE; - BKE_gpencil_stroke_geometry_update(gpd, gps); } } + + BKE_gpencil_editcurve_recalculate_handles(gps); + gps->flag |= GP_STROKE_NEEDS_CURVE_UPDATE; + BKE_gpencil_stroke_geometry_update(gpd, gps); } GP_EDITABLE_CURVES_END(gps_iter); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs