forked from bartvdbraak/blender
== Sequencer ==
Fix blend opacity of old files, so that strips do not silently disappear.
This commit is contained in:
parent
86cbb9f7cb
commit
5714c84c54
@ -44,7 +44,7 @@ struct ListBase;
|
||||
struct MemFile;
|
||||
|
||||
#define BLENDER_VERSION 245
|
||||
#define BLENDER_SUBVERSION 13
|
||||
#define BLENDER_SUBVERSION 14
|
||||
|
||||
#define BLENDER_MINVERSION 240
|
||||
#define BLENDER_MINSUBVERSION 0
|
||||
|
@ -7351,6 +7351,26 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
|
||||
}
|
||||
}
|
||||
|
||||
if ((main->versionfile < 245) || (main->versionfile == 245 && main->subversionfile < 14)) {
|
||||
Scene *sce= main->scene.first;
|
||||
Sequence *seq;
|
||||
Editing *ed;
|
||||
|
||||
while(sce) {
|
||||
ed= sce->ed;
|
||||
if(ed) {
|
||||
WHILE_SEQ(&ed->seqbase) {
|
||||
if (seq->blend_mode == 0) {
|
||||
seq->blend_opacity = 100.0;
|
||||
}
|
||||
}
|
||||
END_SEQ
|
||||
}
|
||||
|
||||
sce= sce->id.next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */
|
||||
/* WATCH IT 2!: Userdef struct init has to be in src/usiblender.c! */
|
||||
|
Loading…
Reference in New Issue
Block a user