Do not clamp search size when adding new track with non-klt tracker set
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 4 Dec 2011 11:57:23 +0000 (11:57 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 4 Dec 2011 11:57:23 +0000 (11:57 +0000)
source/blender/blenkernel/intern/tracking.c

index 20871dc5b525a604ed8398e9ab87bdb56743a802..e9f49625cff798e947439c3ac6b134451bb65b41 100644 (file)
@@ -248,7 +248,8 @@ MovieTrackingTrack *BKE_tracking_add_track(MovieTracking *tracking, float x, flo
 
        BKE_tracking_insert_marker(track, &marker);
 
-       BKE_tracking_clamp_track(track, CLAMP_PYRAMID_LEVELS);
+       if(track->tracker == TRACKER_KLT)
+               BKE_tracking_clamp_track(track, CLAMP_PYRAMID_LEVELS);
 
        BLI_addtail(&tracking->tracks, track);
        BKE_track_unique_name(tracking, track);