From 3e38a951dd46938c45489551b1c0164eb0e7d100 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 7 Jan 2005 18:07:13 +0000 Subject: 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. --- source/blender/blenloader/intern/readfile.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/blender/blenloader') 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; } } -- cgit v1.2.3