From d0f4c9639450ec1b90e7041e3d9c30e4927a745d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 19 Sep 2012 15:01:36 +0000 Subject: Color Management: don't apply display transform on Non-Color images Also don't color manage data buffers in texture painting. Makes it possible to view heights and normal maps in proper space and also paint on them without applying extra transformation. --- source/blender/imbuf/IMB_imbuf_types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/imbuf/IMB_imbuf_types.h') diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h index 93e213dc486..f03f709f13f 100644 --- a/source/blender/imbuf/IMB_imbuf_types.h +++ b/source/blender/imbuf/IMB_imbuf_types.h @@ -131,6 +131,7 @@ typedef struct ImBuf { struct ColorSpace *float_colorspace; /* color space of float buffer, used by sequencer only */ unsigned int *display_buffer_flags; /* array of per-display display buffers dirty flags */ struct ColormanageCache *colormanage_cache; /* cache used by color management */ + int colormanage_flag; /* information for compressed textures */ struct DDSData dds_data; @@ -260,4 +261,8 @@ extern const char *imb_ext_image_qt[]; extern const char *imb_ext_movie[]; extern const char *imb_ext_audio[]; +enum { + IMB_COLORMANAGE_IS_DATA = (1 << 0) +}; + #endif -- cgit v1.2.3