Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2020-11-30 16:13:03 +0300
committerSergey Sharybin <sergey@blender.org>2020-11-30 16:13:34 +0300
commit8dac88b54a68671afee4e77d7038cba915ff0992 (patch)
treec08a149d6d4beb196c70a1fc0da7e951b9ab6355 /source/blender
parent9306e01b10cd0cad50179f68fe8c8fed1c86e4a1 (diff)
Tracking: Cleanup, unused field in autotrack context
Was only assigned to truth, always. Never read back.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/BKE_tracking.h3
-rw-r--r--source/blender/blenkernel/intern/tracking_auto.c5
-rw-r--r--source/blender/editors/space_clip/tracking_ops_track.c2
3 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/blenkernel/BKE_tracking.h b/source/blender/blenkernel/BKE_tracking.h
index f92cd784ee0..2dab0a1030e 100644
--- a/source/blender/blenkernel/BKE_tracking.h
+++ b/source/blender/blenkernel/BKE_tracking.h
@@ -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);
diff --git a/source/blender/blenkernel/intern/tracking_auto.c b/source/blender/blenkernel/intern/tracking_auto.c
index e7a98ba1c3f..7222f7346fc 100644
--- a/source/blender/blenkernel/intern/tracking_auto.c
+++ b/source/blender/blenkernel/intern/tracking_auto.c
@@ -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;
diff --git a/source/blender/editors/space_clip/tracking_ops_track.c b/source/blender/editors/space_clip/tracking_ops_track.c
index 66669527929..585b13b426e 100644
--- a/source/blender/editors/space_clip/tracking_ops_track.c
+++ b/source/blender/editors/space_clip/tracking_ops_track.c
@@ -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;