diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-08-13 14:47:06 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-08-13 14:47:06 +0300 |
commit | 798a83e35faefb269654956dc51c8b2e45b1fd66 (patch) | |
tree | 8fe0765a88225c406e2505a91774602dd87ec6c0 /source/blender | |
parent | 0aefef7f8f6a6c1145f4bceea584b6d0a5a73c3d (diff) |
Cleanup: avoid too close namings, prone to typo mistakes!
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/tracking.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c index 27db124ee19..830732f4ce2 100644 --- a/source/blender/blenkernel/intern/tracking.c +++ b/source/blender/blenkernel/intern/tracking.c @@ -213,13 +213,17 @@ static void tracking_tracks_copy(ListBase *tracks_dst, const ListBase *tracks_sr /* copy the whole list of plane tracks (need whole MovieTracking structures due to embedded pointers to tracks). * WARNING: implies tracking_[dst/src] and their tracks have already been copied. */ static void tracking_plane_tracks_copy( - ListBase *plane_tracks_dst, const ListBase *plane_tracks_src, GHash *tracks_mapping, const int flag) + ListBase *plane_tracks_list_dst, const ListBase *plane_tracks_list_src, + GHash *tracks_mapping, const int flag) { MovieTrackingPlaneTrack *plane_track_dst, *plane_track_src; - BLI_listbase_clear(plane_tracks_dst); + BLI_listbase_clear(plane_tracks_list_dst); - for (plane_track_src = plane_tracks_src->first; plane_track_src != NULL; plane_track_src = plane_track_src->next) { + for (plane_track_src = plane_tracks_list_src->first; + plane_track_src != NULL; + plane_track_src = plane_track_src->next) + { plane_track_dst = MEM_dupallocN(plane_track_src); if (plane_track_src->markers) { plane_track_dst->markers = MEM_dupallocN(plane_track_src->markers); @@ -231,7 +235,7 @@ static void tracking_plane_tracks_copy( if ((flag & LIB_ID_CREATE_NO_USER_REFCOUNT) == 0) { id_us_plus(&plane_track_dst->image->id); } - BLI_addtail(plane_tracks_dst, plane_track_dst); + BLI_addtail(plane_tracks_list_dst, plane_track_dst); } } |