[Bf-blender-cvs] [9cfce143bcc] temp_T76472_graph_editor_fcurve_extrapolation: - ghost fcurve drawing uses Show Extrapolation setting

Wayde Moss noreply at git.blender.org
Thu Feb 18 16:49:30 CET 2021


Commit: 9cfce143bcc83f359b2837c5d4830c467ed6ef56
Author: Wayde Moss
Date:   Thu Feb 18 10:49:11 2021 -0500
Branches: temp_T76472_graph_editor_fcurve_extrapolation
https://developer.blender.org/rB9cfce143bcc83f359b2837c5d4830c467ed6ef56

- ghost fcurve drawing uses Show Extrapolation setting

===================================================================

M	source/blender/editors/space_graph/graph_draw.c

===================================================================

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



More information about the Bf-blender-cvs mailing list