Cleanup: remove moar G.main usages.
[blender.git] / source / blender / editors / object / object_relations.c
index 68bcdc59f4ed23ff46aae1b7ccf48f449fda4f7a..03ded0f71e5be6d26dbb9e61056ef573de02044f 100644 (file)
@@ -633,7 +633,7 @@ bool ED_object_parent_set(ReportList *reports, Main *bmain, Scene *scene, Object
                        /* if follow, add F-Curve for ctime (i.e. "eval_time") so that path-follow works */
                        if (partype == PAR_FOLLOW) {
                                /* get or create F-Curve */
-                               bAction *act = verify_adt_action(&cu->id, 1);
+                               bAction *act = verify_adt_action(bmain, &cu->id, 1);
                                FCurve *fcu = verify_fcurve(act, NULL, NULL, "eval_time", 0, 1);
 
                                /* setup dummy 'generator' modifier here to get 1-1 correspondence still working */