diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-19 19:01:36 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-19 19:01:36 +0400 |
commit | d0f4c9639450ec1b90e7041e3d9c30e4927a745d (patch) | |
tree | 98c72ca38b3b6f186d04aa3f591b709d45eaed1b /source/blender/imbuf/intern/IMB_colormanagement_intern.h | |
parent | 16a698ad4abdcf77b32ec9c797cdb462eec051c4 (diff) |
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.
Diffstat (limited to 'source/blender/imbuf/intern/IMB_colormanagement_intern.h')
-rw-r--r-- | source/blender/imbuf/intern/IMB_colormanagement_intern.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/IMB_colormanagement_intern.h b/source/blender/imbuf/intern/IMB_colormanagement_intern.h index 0c002b78848..059bdee00eb 100644 --- a/source/blender/imbuf/intern/IMB_colormanagement_intern.h +++ b/source/blender/imbuf/intern/IMB_colormanagement_intern.h @@ -48,6 +48,7 @@ typedef struct ColorSpace { struct ConstProcessorRcPtr *from_scene_linear; int is_invertible; + int is_data; } ColorSpace; typedef struct ColorManagedDisplay { @@ -79,7 +80,7 @@ struct ColorManagedView *colormanage_view_add(const char *name); struct ColorManagedView *colormanage_view_get_indexed(int index); struct ColorManagedView *colormanage_view_get_named(const char *name); -struct ColorSpace *colormanage_colorspace_add(const char *name, const char *description, int is_invertible); +struct ColorSpace *colormanage_colorspace_add(const char *name, const char *description, int is_invertible, int is_data); struct ColorSpace *colormanage_colorspace_get_named(const char *name); struct ColorSpace *colormanage_colorspace_get_roled(int role); struct ColorSpace *colormanage_colorspace_get_indexed(int index); |