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>2008-07-06 17:52:17 +0400
committerTon Roosendaal <ton@blender.org>2008-07-06 17:52:17 +0400
commit1df2701fd78232b9f463531f1c707643d14de6cd (patch)
tree6975139c07e4a26dfc34dbb02c7e65a941f450bb
parent37205596dab7685da29b9a7b91b1b29f9361c419 (diff)
Bugfix #16669
The Image "do premul" option didn't work when Image was of type Sequence. (Note: this option converts key-alpha images to premul, as is standard in Blender rendering)
-rw-r--r--source/blender/blenkernel/intern/image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index f16269aa50c..b6c8ad59e08 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -1512,6 +1512,10 @@ static ImBuf *image_load_sequence_file(Image *ima, ImageUser *iuser, int frame)
image_initialize_after_load(ima, ibuf);
image_assign_ibuf(ima, ibuf, 0, frame);
#endif
+
+ if(ima->flag & IMA_DO_PREMUL)
+ converttopremul(ibuf);
+
}
else
ima->ok= 0;