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:
authorJoseph Eagar <joeedh@gmail.com>2008-02-14 15:44:27 +0300
committerJoseph Eagar <joeedh@gmail.com>2008-02-14 15:44:27 +0300
commit6907bcc79bff47d5b861305631d4f765d0778049 (patch)
treeebddb8b70e8dc6cae01460490a5fb82d3b5de69e /source/blender/blenkernel
parent4eb064a00129646ab04e6d95fd18233358e963d3 (diff)
Reverted the change of auto-turning on premul for images from last
commit. I still think this is a good idea, but needs more discussion. Basically, the way the premul option worked before is it actually changed the image data to be premul (for each pixel it multipled r,g,b by a) when loading an image. So if a user wanted his image to be key, yet still work in the renderer (which expects premul) he'd be stuck. Also, it was kindof confusing how if you painted something in the image, then saved it with premul on, when next you loaded the image it'd have changed (especially since the image editor painting seems to paint in key, not premul).
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/image.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index aeed850c47a..fdd36d72b06 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -276,7 +276,6 @@ static Image *image_alloc(const char *name, short source, short type)
ima->source= source;
ima->type= type;
- ima->flag = IMA_DO_PREMUL;
}
return ima;
}