diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-15 12:34:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-15 12:34:47 +0300 |
commit | 06ea819c0d717b831447e1a2d424e2f4979b27cd (patch) | |
tree | 2a2873623e578f91c795673bc6efe50b3a0b0007 /source/blender | |
parent | ca25fe98fca8bed1de98c9bf6b899358e8500286 (diff) |
Tracking: Avoid possible treading issue reading the frame to sync
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/tracking_auto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/tracking_auto.c b/source/blender/blenkernel/intern/tracking_auto.c index f4601d66405..8f84b222015 100644 --- a/source/blender/blenkernel/intern/tracking_auto.c +++ b/source/blender/blenkernel/intern/tracking_auto.c @@ -446,11 +446,11 @@ bool BKE_autotrack_context_step(AutoTrackContext *context) void BKE_autotrack_context_sync(AutoTrackContext *context) { - int newframe = context->user.framenr, - frame_delta = context->backwards ? -1 : 1; + int newframe, frame_delta = context->backwards ? -1 : 1; int clip, frame; BLI_spin_lock(&context->spin_lock); + newframe = context->user.framenr; for (frame = context->sync_frame; frame != (context->backwards ? newframe - 1 : newframe + 1); frame += frame_delta) |