diff options
author | Sebastian Koenig <sebastiankoenig@posteo.de> | 2017-12-15 15:53:44 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-15 15:53:44 +0300 |
commit | ff0d3c520ff94434f0cc86a13cccd479622d74b8 (patch) | |
tree | 411569fb7a3e591e1c634ac575027d988fe0adb0 | |
parent | 6b62f1dcb93d1a4a4ec2b7ed29afc6c0be6d3c21 (diff) |
Tracking: Cleanup, fix typo in variable name
-rw-r--r-- | source/blender/blenkernel/intern/tracking_auto.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/tracking_auto.c b/source/blender/blenkernel/intern/tracking_auto.c index ccff86e4258..40234bacdfe 100644 --- a/source/blender/blenkernel/intern/tracking_auto.c +++ b/source/blender/blenkernel/intern/tracking_auto.c @@ -289,7 +289,7 @@ static void fill_autotrack_tracks(const int frame_width, struct libmv_AutoTrack *autotrack) { /* Count number of markers to be put to a context. */ - size_t num_trackable_marekrs = 0; + size_t num_trackable_markers = 0; for (MovieTrackingTrack *track = tracksbase->first; track != NULL; track = track->next) @@ -297,17 +297,17 @@ static void fill_autotrack_tracks(const int frame_width, for (int i = 0; i < track->markersnr; ++i) { const MovieTrackingMarker *marker = track->markers + i; if ((marker->flag & MARKER_DISABLED) == 0) { - num_trackable_marekrs++; + num_trackable_markers++; } } } /* Early output if we don't have any markers. */ - if (num_trackable_marekrs == 0) { + if (num_trackable_markers == 0) { return; } /* Allocate memory for all the markers. */ libmv_Marker *libmv_markers = MEM_mallocN( - sizeof(libmv_Marker) * num_trackable_marekrs, + sizeof(libmv_Marker) * num_trackable_markers, "libmv markers array"); /* Fill in markers array. */ int track_index = 0, num_filled_libmv_markers = 0; @@ -335,7 +335,7 @@ static void fill_autotrack_tracks(const int frame_width, /* Add all markers to autotrack. */ libmv_autoTrackSetMarkers(autotrack, libmv_markers, - num_trackable_marekrs); + num_trackable_markers); /* Free temporary memory. */ MEM_freeN(libmv_markers); } |