diff options
author | Joseph Eagar <joeedh@gmail.com> | 2008-02-19 02:50:12 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2008-02-19 02:50:12 +0300 |
commit | ccac67d3eae4684e86b2a8a4858e9b173f520270 (patch) | |
tree | 1e645fc6b61e352b3436b8610676ed66ae640980 /source/blender/makesdna | |
parent | 05a28c8521c04e86accfd5999c3cf5b7dbb07929 (diff) |
Further work on the premul option for ton. This option
(which basically tells the renderer and compositor to expect a
key image) is now done at the image user level.
This does have some caveats, as image users don't always work
the way I thought they would/should (for example, the same image user
structure is apparently used in the uv image editor for all images,
which is kindof odd).
The UV image editor also now smartly detects if the premul option is
set and draws the image using key alpha, instead of premul
The subversion level was upped to convert the old premul flag, which was at
the image level, to the new one, which is at the image user level.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_image_types.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h index d5e4b7a1142..bc94f807baa 100644 --- a/source/blender/makesdna/DNA_image_types.h +++ b/source/blender/makesdna/DNA_image_types.h @@ -58,6 +58,7 @@ typedef struct ImageUser { /* iuser->flag */ #define IMA_ANIM_ALWAYS 1 #define IMA_ANIM_REFRESHED 2 +#define IMA_DO_PREMUL 4 typedef struct Image { ID id; @@ -108,7 +109,12 @@ typedef struct Image { #define IMA_REFLECT 16 #define IMA_NOCOLLECT 32 #define IMA_ANTIALI 64 -#define IMA_DO_PREMUL 128 + +/*used to be IMA_DO_PREMUL. Note that + in theory, in should be possible + to use this flag position if necassary, + since this is only used in do_versions.*/ +#define IMA_OLDFLAG 128 /* tpageflag */ #define IMA_TILES 1 |