Animation: treat F-Curves with no keys as if muted/not existing.
authorAlexander Gavrilov <angavrilov@gmail.com>
Wed, 15 May 2019 19:26:58 +0000 (22:26 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Wed, 15 May 2019 19:35:15 +0000 (22:35 +0300)
commit40a69b2ad7fc03dd28e985ec95dcc18967c6454f
tree38e707bad4a3a6f427485e4db017bde6407c2777
parent198c00f4ed09f8b9c7273c40f93c7f2630f14624
Animation: treat F-Curves with no keys as if muted/not existing.

When normally editing curves, deleting the last keyframe also
deletes the curve. Thus if for some reason it didn't happen,
e.g. maybe due to removing keys directly via Python, skip the
bad curve instead of resetting the channel to zero.
source/blender/blenkernel/intern/anim_sys.c
source/blender/editors/interface/interface_anim.c