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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-31 15:40:41 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-31 15:47:08 +0300
commit8987f7987d8160e1f6e79e8c85d6ce65b885ab25 (patch)
tree5c01a3a35ce8bb4025b6d5d063351dd5d8699809 /source/blender
parentaec28acc751727c9a5a70482b2b9d0800ee2cf47 (diff)
Fix missing file read/write of proxy/transform/crop settings when not used
This was inconsistent with other data handling in Blender.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/BKE_blender_version.h2
-rw-r--r--source/blender/blenloader/intern/readfile.c31
-rw-r--r--source/blender/blenloader/intern/versioning_280.c2
-rw-r--r--source/blender/blenloader/intern/writefile.c6
4 files changed, 13 insertions, 28 deletions
diff --git a/source/blender/blenkernel/BKE_blender_version.h b/source/blender/blenkernel/BKE_blender_version.h
index 887082a17a1..5de8ad68c96 100644
--- a/source/blender/blenkernel/BKE_blender_version.h
+++ b/source/blender/blenkernel/BKE_blender_version.h
@@ -27,7 +27,7 @@
* \note Use #STRINGIFY() rather than defining with quotes.
*/
#define BLENDER_VERSION 280
-#define BLENDER_SUBVERSION 73
+#define BLENDER_SUBVERSION 74
/** Several breakages with 280, e.g. collections vs layers. */
#define BLENDER_MINVERSION 280
#define BLENDER_MINSUBVERSION 0
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index d08c9f23db1..b2536935663 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -6782,29 +6782,14 @@ static void direct_link_scene(FileData *fd, Scene *sce)
else {
seq->strip->stripdata = NULL;
}
- if (seq->flag & SEQ_USE_CROP) {
- seq->strip->crop = newdataadr(fd, seq->strip->crop);
- }
- else {
- seq->strip->crop = NULL;
- }
- if (seq->flag & SEQ_USE_TRANSFORM) {
- seq->strip->transform = newdataadr(fd, seq->strip->transform);
- }
- else {
- seq->strip->transform = NULL;
- }
- if (seq->flag & SEQ_USE_PROXY) {
- seq->strip->proxy = newdataadr(fd, seq->strip->proxy);
- if (seq->strip->proxy) {
- seq->strip->proxy->anim = NULL;
- }
- else {
- BKE_sequencer_proxy_set(seq, true);
- }
- }
- else {
- seq->strip->proxy = NULL;
+ seq->strip->crop = newdataadr(fd, seq->strip->crop);
+ seq->strip->transform = newdataadr(fd, seq->strip->transform);
+ seq->strip->proxy = newdataadr(fd, seq->strip->proxy);
+ if (seq->strip->proxy) {
+ seq->strip->proxy->anim = NULL;
+ }
+ else if (seq->flag & SEQ_USE_PROXY) {
+ BKE_sequencer_proxy_set(seq, true);
}
/* need to load color balance to it could be converted to modifier */
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 315d8f0848d..1f543a92c04 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -3495,7 +3495,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
- if (!MAIN_VERSION_ATLEAST(bmain, 280, 72)) {
+ if (!MAIN_VERSION_ATLEAST(bmain, 280, 74)) {
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);
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 6305aa95e7f..8d83be47f63 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -2580,13 +2580,13 @@ static void write_scene(WriteData *wd, Scene *sce)
Strip *strip = seq->strip;
writestruct(wd, DATA, Strip, 1, strip);
- if (seq->flag & SEQ_USE_CROP && strip->crop) {
+ if (strip->crop) {
writestruct(wd, DATA, StripCrop, 1, strip->crop);
}
- if (seq->flag & SEQ_USE_TRANSFORM && strip->transform) {
+ if (strip->transform) {
writestruct(wd, DATA, StripTransform, 1, strip->transform);
}
- if (seq->flag & SEQ_USE_PROXY && strip->proxy) {
+ if (strip->proxy) {
writestruct(wd, DATA, StripProxy, 1, strip->proxy);
}
if (seq->type == SEQ_TYPE_IMAGE) {