Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2019-05-23 21:50:15 +0300
committerRichard Antalik <richardantalik@gmail.com>2019-05-23 21:50:15 +0300
commit1fd7b380f4cf8a0489b405de2819f228a4da5ea2 (patch)
treea829fdf55a649e1c1d6ebca9a6006ad08e415755 /source/blender/blenloader
parenta3bc8690387b53234234d1c8f993fa04974d3034 (diff)
VSE: remove lazy loading for strip crop and transform
Lazy loading prevented showing values in UI. Now we just gray them out if not used.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index c4e3390d65f..a783e35f652 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -715,6 +715,23 @@ static void do_version_constraints_copy_scale_power(ListBase *lb)
}
}
+static void do_versions_seq_alloc_transform_and_crop(ListBase *seqbase)
+{
+ for (Sequence *seq = seqbase->first; seq != NULL; seq = seq->next) {
+ if (seq->strip->transform == NULL) {
+ seq->strip->transform = MEM_callocN(sizeof(struct StripTransform), "StripTransform");
+ }
+
+ if (seq->strip->crop == NULL) {
+ seq->strip->crop = MEM_callocN(sizeof(struct StripCrop), "StripCrop");
+ }
+
+ if (seq->seqbase.first != NULL) {
+ do_versions_seq_alloc_transform_and_crop(&seq->seqbase);
+ }
+ }
+}
+
void do_versions_after_linking_280(Main *bmain)
{
bool use_collection_compat_28 = true;
@@ -3487,6 +3504,14 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
+ if (!MAIN_VERSION_ATLEAST(bmain, 280, 72)) {
+ for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) {
+ if (scene->ed != NULL) {
+ do_versions_seq_alloc_transform_and_crop(&scene->ed->seqbase);
+ }
+ }
+ }
+
{
/* Versioning code until next subversion bump goes here. */
}