From c814d9323e9506397887dff3a2c32dcc363178ab Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Tue, 11 Jul 2023 16:43:23 +0200 Subject: [PATCH] Fix #109920: f-curve ghosts are drawn with incorrect extrapolation This simply disables extrapolation for all sampled ghost curves, since their extrapolation doesn't match the f-curves they're ghosting anyway. Pull Request: https://projects.blender.org/blender/blender/pulls/109926 --- source/blender/editors/space_graph/graph_draw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index ee2fc37b3e4..6e58fba3111 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -1386,7 +1386,10 @@ void graph_draw_ghost_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *region immUniform1f("dash_width", 20.0f); immUniform1f("udash_factor", 0.5f); - const bool draw_extrapolation = (sipo->flag & SIPO_NO_DRAW_EXTRAPOLATION) == 0; + /* Don't draw extrapolation on sampled ghost curves because it doesn't + * match the curves they're ghosting anyway. + * See issue #109920 for details. */ + const bool draw_extrapolation = false; /* the ghost curves are simply sampled F-Curves stored in sipo->runtime.ghost_curves */ for (fcu = sipo->runtime.ghost_curves.first; fcu; fcu = fcu->next) { /* set whatever color the curve has set