diff options
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index bfff36bb83a..4db7ee9594e 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -1024,8 +1024,8 @@ static int followpath_path_animate_exec(bContext *C, wmOperator *op) if (ELEM(NULL, cu->adt, cu->adt->action) || (list_find_fcurve(&cu->adt->action->curves, "eval_time", 0) == NULL)) { /* create F-Curve for path animation */ - act = verify_adt_action(bmain, &cu->id, 1); - fcu = verify_fcurve(bmain, act, NULL, NULL, "eval_time", 0, 1); + act = ED_id_action_ensure(bmain, &cu->id); + fcu = ED_action_fcurve_ensure(bmain, act, NULL, NULL, "eval_time", 0); /* standard vertical range - 1:1 = 100 frames */ standardRange = 100.0f; @@ -1049,8 +1049,8 @@ static int followpath_path_animate_exec(bContext *C, wmOperator *op) path = RNA_path_from_ID_to_property(&ptr, prop); /* create F-Curve for constraint */ - act = verify_adt_action(bmain, &ob->id, 1); - fcu = verify_fcurve(bmain, act, NULL, NULL, path, 0, 1); + act = ED_id_action_ensure(bmain, &ob->id); + fcu = ED_action_fcurve_ensure(bmain, act, NULL, NULL, path, 0); /* standard vertical range - 0.0 to 1.0 */ standardRange = 1.0f; |