Cleanup: remove some G.main from BKE area.
[blender.git] / source / blender / blenkernel / intern / anim_sys.c
index 924b1951d37fe66999876f8367363e6cfeccf93f..b94bce9baeef02404c1ab90a02bcabcff8a512ae 100644 (file)
@@ -284,7 +284,7 @@ AnimData *BKE_animdata_copy(Main *bmain, AnimData *adt, const bool do_action)
        }
 
        /* duplicate NLA data */
-       BKE_nla_tracks_copy(&dadt->nla_tracks, &adt->nla_tracks);
+       BKE_nla_tracks_copy(bmain, &dadt->nla_tracks, &adt->nla_tracks);
        
        /* duplicate drivers (F-Curves) */
        copy_fcurves(&dadt->drivers, &adt->drivers);
@@ -366,7 +366,7 @@ void BKE_animdata_merge_copy(ID *dst_id, ID *src_id, eAnimData_MergeCopy_Modes a
        if (src->nla_tracks.first) {
                ListBase tracks = {NULL, NULL};
                
-               BKE_nla_tracks_copy(&tracks, &src->nla_tracks);
+               BKE_nla_tracks_copy(G.main, &tracks, &src->nla_tracks);
                BLI_movelisttolist(&dst->nla_tracks, &tracks);
        }