diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-16 09:47:57 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-16 09:48:46 +0300 |
commit | 65199828766afff21b1a1741fd5a7d651d92f17d (patch) | |
tree | aa3a5f22e83b421044706162ce35d6fc4d92836b /source/blender/editors/interface/interface_anim.c | |
parent | e097845a6fab925a364b029c7b709db2b46176e1 (diff) |
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.
Diffstat (limited to 'source/blender/editors/interface/interface_anim.c')
-rw-r--r-- | source/blender/editors/interface/interface_anim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_anim.c b/source/blender/editors/interface/interface_anim.c index e34d67b6996..4a0a19f57cf 100644 --- a/source/blender/editors/interface/interface_anim.c +++ b/source/blender/editors/interface/interface_anim.c @@ -83,7 +83,7 @@ void ui_but_anim_flag(uiBut *but, float cfra) if (fcu) { if (!driven) { /* Empty curves are ignored by the animation evaluation system. */ - if (fcu->totvert == 0) { + if (BKE_fcurve_is_empty(fcu)) { return; } |