From 9cfce143bcc83f359b2837c5d4830c467ed6ef56 Mon Sep 17 00:00:00 2001 From: Wayde Moss Date: Thu, 18 Feb 2021 10:49:11 -0500 Subject: - ghost fcurve drawing uses Show Extrapolation setting --- source/blender/editors/space_graph/graph_draw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender') diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index e0a37e7306d..e269d425b79 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -1345,9 +1345,7 @@ void graph_draw_ghost_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *region immUniform1f("dash_width", 20.0f); immUniform1f("dash_factor", 0.5f); - /* Always draw extrapolation since currently ghost fcurve sample points may include extrapolated - * points. */ - const bool draw_extrapolation = true; + const bool draw_extrapolation = (sipo->flag & SIPO_NO_DRAW_EXTRAPOLATION) == 0; /* 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 -- cgit v1.2.3