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:
authorTon Roosendaal <ton@blender.org>2005-01-07 21:07:13 +0300
committerTon Roosendaal <ton@blender.org>2005-01-07 21:07:13 +0300
commit3e38a951dd46938c45489551b1c0164eb0e7d100 (patch)
tree907bd900355d4db8ef09f6b216ade180e53413e8 /source/blender/blenloader/intern
parentac82b483807ac5d6b68d8f03dc955c03643c8a18 (diff)
Bug fix #2104
When using Sequencer for Alpha-Over images, it was assuming "Key" alpha by default, and converting images to "Premul" (= multiplying RGB with alpha). This isn't very nice, also because alpha generated by MBlur in Blender always is of type Premul already. Solution; make this an option. In the Nkey panel for strips you can set or disable Premul now. As extra also added the "Filter" and "Mul" options, as already there for Movie strips. Can easily be extended to more options for various postprocess effects.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/readfile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 3a8fdb69d7a..37e21e39279 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4596,6 +4596,8 @@ static void do_versions(Main *main)
if(main->versionfile <= 235) {
Tex *tex= main->tex.first;
Scene *sce= main->scene.first;
+ Sequence *seq;
+ Editing *ed;
while(tex) {
if(tex->nabla==0.0) tex->nabla= 0.025;
@@ -4603,6 +4605,14 @@ static void do_versions(Main *main)
}
while(sce) {
sce->r.postsat= 1.0;
+ ed= sce->ed;
+ if(ed) {
+ WHILE_SEQ(&ed->seqbase) {
+ if(seq->type==SEQ_IMAGE || seq->type==SEQ_MOVIE) seq->flag |= SEQ_MAKE_PREMUL;
+ }
+ END_SEQ
+ }
+
sce= sce->id.next;
}
}