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/blenloader | |
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/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_260.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_260.c b/source/blender/blenloader/intern/versioning_260.c index af6355d7009..2880fec698b 100644 --- a/source/blender/blenloader/intern/versioning_260.c +++ b/source/blender/blenloader/intern/versioning_260.c @@ -2719,4 +2719,11 @@ void blo_do_versions_260(FileData *fd, Library *UNUSED(lib), Main *main) } } } + + if (!DNA_struct_elem_find(fd->filesdna, "MovieTrackingSettings", "float", "default_weight")) { + MovieClip *clip; + for (clip = main->movieclip.first; clip; clip = clip->id.next) { + clip->tracking.settings.default_weight = 1.0f; + } + } } |