Missed setting handles in curve dissolve

This commit is contained in:
Campbell Barton
2016-05-03 00:06:12 +10:00
parent 122496dda1
commit a58a8ebea7

View File

@@ -5846,6 +5846,13 @@ static int curve_dissolve_exec(bContext *C, wmOperator *UNUSED(op))
bezt_prev->vec[2], bezt_next->vec[0],
&error_sq_dummy);
if (!ELEM(bezt_prev->h2, HD_FREE, HD_ALIGN)) {
bezt_prev->h2 = (bezt_prev->h2 == HD_VECT) ? HD_FREE : HD_ALIGN;
}
if (!ELEM(bezt_next->h1, HD_FREE, HD_ALIGN)) {
bezt_next->h1 = (bezt_next->h1 == HD_VECT) ? HD_FREE : HD_ALIGN;
}
MEM_freeN(points);
}
}