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>2007-11-28 15:32:25 +0300
committerTon Roosendaal <ton@blender.org>2007-11-28 15:32:25 +0300
commit7154e84ee1d5a6086eb47b499712d4bbc8a05a8f (patch)
treed74b4fa38173d4b3d0f325f63f279ba331d5a46b /source/blender/blenkernel
parent36f7da70466603643ec28b47e4ec0b082fa5226a (diff)
Images now have option to be tagged "convert to premul".
Option available in the Image (properties) panel.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index bb60c221839..be63ce734be 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -1560,6 +1560,9 @@ static ImBuf *image_load_image_file(Image *ima, ImageUser *iuser, int cfra)
if ((ima->packedfile == NULL) && (G.fileflags & G_AUTOPACK))
ima->packedfile = newPackedFile(str);
}
+
+ if(ima->flag & IMA_DO_PREMUL)
+ converttopremul(ibuf);
}
else
ima->ok= 0;