From 96da728df9f87dbb327729edc961facdb11a1491 Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Fri, 24 Mar 2023 12:25:00 +0100 Subject: [PATCH] fix drawing --- source/blender/editors/space_graph/graph_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index f315690a50d..bc71437112d 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -704,7 +704,7 @@ static void draw_fcurve_curve_samples(bAnimContext *ac, const uint shdr_pos, const bool draw_extrapolation) { - if (!draw_extrapolation) { + if (!draw_extrapolation && fcu->totvert == 1) { return; } @@ -817,7 +817,7 @@ static bool fcurve_can_use_simple_bezt_drawing(FCurve *fcu) static void draw_fcurve_curve_bezts( bAnimContext *ac, ID *id, FCurve *fcu, View2D *v2d, uint pos, const bool draw_extrapolation) { - if (!draw_extrapolation) { + if (!draw_extrapolation && fcu->totvert == 1) { return; } -- 2.30.2