diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2020-06-05 09:41:09 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2020-06-05 09:41:35 +0300 |
commit | fe6be70875bca64e555d1cbedf1c2160493cf0e2 (patch) | |
tree | 96a78a9737f091dfc884a232f28d8e0f33337967 /source/blender/editors/space_graph | |
parent | e3a32a22bf9dbed18d7718ea4a0d66759c933a3b (diff) |
CleanUp: Introduce BKE_fcurve_create
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r-- | source/blender/editors/space_graph/graph_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index a974ec612a9..06da4416f04 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -425,7 +425,7 @@ static void create_ghost_curves(bAnimContext *ac, int start, int end) /* loop through filtered data and add keys between selected keyframes on every frame */ for (ale = anim_data.first; ale; ale = ale->next) { FCurve *fcu = (FCurve *)ale->key_data; - FCurve *gcu = MEM_callocN(sizeof(FCurve), "Ghost FCurve"); + FCurve *gcu = BKE_fcurve_create(); AnimData *adt = ANIM_nla_mapping_get(ac, ale); ChannelDriver *driver = fcu->driver; FPoint *fpt; |