diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_action.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_action.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_action.c b/source/blender/makesrna/intern/rna_action.c index 6eaf303ce2d..436e847b044 100644 --- a/source/blender/makesrna/intern/rna_action.c +++ b/source/blender/makesrna/intern/rna_action.c @@ -123,8 +123,8 @@ static FCurve *rna_Action_fcurve_new(bAction *act, return NULL; } - /* annoying, check if this exists */ - if (verify_fcurve(bmain, act, group, NULL, data_path, index, 0)) { + /* Annoying, check if this exists. */ + if (ED_action_fcurve_find(act, data_path, index)) { BKE_reportf(reports, RPT_ERROR, "F-Curve '%s[%d]' already exists in action '%s'", @@ -133,7 +133,7 @@ static FCurve *rna_Action_fcurve_new(bAction *act, act->id.name + 2); return NULL; } - return verify_fcurve(bmain, act, group, NULL, data_path, index, 1); + return ED_action_fcurve_ensure(bmain, act, group, NULL, data_path, index); } static FCurve *rna_Action_fcurve_find(bAction *act, |