From 65199828766afff21b1a1741fd5a7d651d92f17d Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 16 May 2019 09:47:57 +0300 Subject: Fix T64681: evaluate curves with generative modifiers and no keys. Introduce a new function and use it everywhere, including automatic curve deletion checks to guarantee consistency. --- source/blender/editors/space_graph/graph_edit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index c5f8c32ec7a..8329218eea9 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -1172,9 +1172,7 @@ static bool delete_graph_keys(bAnimContext *ac) } /* Only delete curve too if it won't be doing anything anymore */ - if ((fcu->totvert == 0) && - (list_has_suitable_fmodifier(&fcu->modifiers, 0, FMI_TYPE_GENERATE_CURVE) == 0) && - (fcu->driver == NULL)) { + if (BKE_fcurve_is_empty(fcu)) { ANIM_fcurve_delete_from_animdata(ac, adt, fcu); ale->key_data = NULL; } -- cgit v1.2.3