diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-02-07 14:16:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-02-07 14:16:23 +0300 |
commit | b1f1a1ca6035e23d66656c97c16fe081caafcae8 (patch) | |
tree | 718677de0dace263ba1c8667b917137fc41374c0 /source/blender/blenkernel/intern | |
parent | 28cd16ec448f57b863f8be0a8f5d303d94bc1f1f (diff) |
Cleanup: Tracking, reduce scope of more variables
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/tracking.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c index 0b732677dcb..37ca6b1885d 100644 --- a/source/blender/blenkernel/intern/tracking.c +++ b/source/blender/blenkernel/intern/tracking.c @@ -1276,15 +1276,14 @@ void BKE_tracking_marker_clamp(MovieTrackingMarker *marker, int event) sub_v2_v2v2(dim, pat_max, pat_min); for (int a = 0; a < 2; a++) { - int b; /* pattern shouldn't be moved outside of search */ if (pat_min[a] < marker->search_min[a]) { - for (b = 0; b < 4; b++) { + for (int b = 0; b < 4; b++) { marker->pattern_corners[b][a] += marker->search_min[a] - pat_min[a]; } } if (pat_max[a] > marker->search_max[a]) { - for (b = 0; b < 4; b++) { + for (int b = 0; b < 4; b++) { marker->pattern_corners[b][a] -= pat_max[a] - marker->search_max[a]; } } |