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/animation/drivers.c | |
parent | e3a32a22bf9dbed18d7718ea4a0d66759c933a3b (diff) |
CleanUp: Introduce BKE_fcurve_create
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r-- | source/blender/editors/animation/drivers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 82e24eaa6e3..f7416ce7566 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -110,7 +110,7 @@ struct FCurve *alloc_driver_fcurve(const char rna_path[], const int array_index, eDriverFCurveCreationMode creation_mode) { - FCurve *fcu = MEM_callocN(sizeof(FCurve), "FCurve"); + FCurve *fcu = BKE_fcurve_create(); fcu->flag = (FCURVE_VISIBLE | FCURVE_SELECTED); fcu->auto_smoothing = U.auto_smoothing_new; |