diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-19 16:42:32 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-19 16:43:36 +0400 |
commit | 57b62881f45993e4431ef8a7a2d3dec041e8cf36 (patch) | |
tree | 3badfc74d2b82817a4b18ff221a371a45ff2d9aa /source/blender/blenkernel | |
parent | bff99b10a3084b4df4aecfd54a186cc7a5f8b3e8 (diff) |
Added track weight to presets
Useful for cases when you need to create bunch of witness tracks.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/tracking.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c index de20f4a8ac6..e72b3697efa 100644 --- a/source/blender/blenkernel/intern/tracking.c +++ b/source/blender/blenkernel/intern/tracking.c @@ -200,6 +200,7 @@ void BKE_tracking_settings_init(MovieTracking *tracking) tracking->settings.default_pattern_size = 15; tracking->settings.default_search_size = 61; tracking->settings.default_algorithm_flag |= TRACK_ALGORITHM_FLAG_USE_BRUTE; + tracking->settings.default_weight = 1.0f; tracking->settings.dist = 1; tracking->settings.object_distance = 1; @@ -418,7 +419,7 @@ MovieTrackingTrack *BKE_tracking_track_add(MovieTracking *tracking, ListBase *tr track->frames_limit = settings->default_frames_limit; track->flag = settings->default_flag; track->algorithm_flag = settings->default_algorithm_flag; - track->weight = 1.0f; + track->weight = settings->default_weight; memset(&marker, 0, sizeof(marker)); marker.pos[0] = x; |