diff options
-rw-r--r-- | source/blender/editors/animation/keyframes_general.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c index 437f74201e4..07c8ddcdb4a 100644 --- a/source/blender/editors/animation/keyframes_general.c +++ b/source/blender/editors/animation/keyframes_general.c @@ -753,11 +753,16 @@ short paste_animedit_keys (bAnimContext *ac, ListBase *anim_data, int pass; /* check if buffer is empty */ - if (ELEM(NULL, animcopybuf.first, animcopybuf.last)) { + if (animcopybuf.first == NULL) { BKE_report(ac->reports, RPT_WARNING, "No data in buffer to paste"); return -1; } + if (anim_data->first == NULL) { + BKE_report(ac->reports, RPT_WARNING, "No FCurves to paste into"); + return -1; + } + /* mathods of offset */ switch(offset_mode) { case KEYFRAME_PASTE_OFFSET_CFRA_START: |