Fix: Animation, Draw active keyframe handles only when Bézier
Draw the handles for the active keyframe only when the interpolation type is set to Bézier. This now matches the behaviour of handles of regular (non-active) keyframes.
This commit is contained in:
parent
50c475e534
commit
0d1b1c341f
|
@ -321,10 +321,12 @@ static void draw_fcurve_active_handle_vertices(const FCurve *fcu,
|
|||
immUniformColor3fvAlpha(active_col, 0.01f); /* Almost invisible - only keep for smoothness. */
|
||||
immBeginAtMost(GPU_PRIM_POINTS, 2);
|
||||
|
||||
if ((bezt->f1 & SELECT)) {
|
||||
const BezTriple *left_bezt = active_keyframe_index > 0 ? &fcu->bezt[active_keyframe_index - 1] :
|
||||
bezt;
|
||||
if (left_bezt->ipo == BEZT_IPO_BEZ && (bezt->f1 & SELECT)) {
|
||||
immVertex2fv(pos, bezt->vec[0]);
|
||||
}
|
||||
if ((bezt->f3 & SELECT)) {
|
||||
if (bezt->ipo == BEZT_IPO_BEZ && (bezt->f3 & SELECT)) {
|
||||
immVertex2fv(pos, bezt->vec[2]);
|
||||
}
|
||||
immEnd();
|
||||
|
|
Loading…
Reference in New Issue