Tracking: Cleanup, unused field in autotrack context
Was only assigned to truth, always. Never read back.
This commit is contained in:
parent
9306e01b10
commit
8dac88b54a
|
@ -326,8 +326,7 @@ void BKE_tracking_refine_marker(struct MovieClip *clip,
|
|||
|
||||
struct AutoTrackContext *BKE_autotrack_context_new(struct MovieClip *clip,
|
||||
struct MovieClipUser *user,
|
||||
const bool backwards,
|
||||
const bool sequence);
|
||||
const bool backwards);
|
||||
bool BKE_autotrack_context_step(struct AutoTrackContext *context);
|
||||
void BKE_autotrack_context_sync(struct AutoTrackContext *context);
|
||||
void BKE_autotrack_context_sync_user(struct AutoTrackContext *context, struct MovieClipUser *user);
|
||||
|
|
|
@ -74,7 +74,6 @@ typedef struct AutoTrackContext {
|
|||
MovieTrackingTrack **tracks;
|
||||
|
||||
bool backwards;
|
||||
bool sequence;
|
||||
int first_frame;
|
||||
int sync_frame;
|
||||
bool first_sync;
|
||||
|
@ -334,8 +333,7 @@ static void create_per_track_tracking_options(const MovieClip *clip,
|
|||
|
||||
AutoTrackContext *BKE_autotrack_context_new(MovieClip *clip,
|
||||
MovieClipUser *user,
|
||||
const bool backwards,
|
||||
const bool sequence)
|
||||
const bool backwards)
|
||||
{
|
||||
AutoTrackContext *context = MEM_callocN(sizeof(AutoTrackContext), "autotrack context");
|
||||
MovieTracking *tracking = &clip->tracking;
|
||||
|
@ -352,7 +350,6 @@ AutoTrackContext *BKE_autotrack_context_new(MovieClip *clip,
|
|||
context->frame_width = frame_width;
|
||||
context->frame_height = frame_height;
|
||||
context->backwards = backwards;
|
||||
context->sequence = sequence;
|
||||
context->first_frame = user->framenr;
|
||||
context->sync_frame = user->framenr;
|
||||
context->first_sync = true;
|
||||
|
|
|
@ -185,7 +185,7 @@ static bool track_markers_initjob(bContext *C, TrackMarkersJob *tmj, bool backwa
|
|||
}
|
||||
}
|
||||
|
||||
tmj->context = BKE_autotrack_context_new(clip, &sc->user, backwards, true);
|
||||
tmj->context = BKE_autotrack_context_new(clip, &sc->user, backwards);
|
||||
|
||||
clip->tracking_context = tmj->context;
|
||||
|
||||
|
|
Loading…
Reference in New Issue