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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-09-19 19:01:36 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-09-19 19:01:36 +0400
commitd0f4c9639450ec1b90e7041e3d9c30e4927a745d (patch)
tree98c72ca38b3b6f186d04aa3f591b709d45eaed1b /intern/opencolorio
parent16a698ad4abdcf77b32ec9c797cdb462eec051c4 (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 'intern/opencolorio')
-rw-r--r--intern/opencolorio/ocio_capi.cpp5
-rw-r--r--intern/opencolorio/ocio_capi.h1
-rw-r--r--intern/opencolorio/ocio_capi_stub.cpp5
3 files changed, 11 insertions, 0 deletions
diff --git a/intern/opencolorio/ocio_capi.cpp b/intern/opencolorio/ocio_capi.cpp
index 2fa66e5d2f5..cc45eb9b2dd 100644
--- a/intern/opencolorio/ocio_capi.cpp
+++ b/intern/opencolorio/ocio_capi.cpp
@@ -302,6 +302,11 @@ int OCIO_colorSpaceIsInvertible(ConstColorSpaceRcPtr *cs)
return true;
}
+int OCIO_colorSpaceIsData(ConstColorSpaceRcPtr *cs)
+{
+ return ((*cs)->isData());
+}
+
void OCIO_colorSpaceRelease(ConstColorSpaceRcPtr *cs)
{
MEM_DELETE(cs, ConstColorSpaceRcPtr);
diff --git a/intern/opencolorio/ocio_capi.h b/intern/opencolorio/ocio_capi.h
index e774e3e8548..0218ccfafcd 100644
--- a/intern/opencolorio/ocio_capi.h
+++ b/intern/opencolorio/ocio_capi.h
@@ -73,6 +73,7 @@ ConstColorSpaceRcPtr *OCIO_configGetColorSpace(ConstConfigRcPtr *config, const c
int OCIO_configGetIndexForColorSpace(ConstConfigRcPtr *config, const char *name);
int OCIO_colorSpaceIsInvertible(ConstColorSpaceRcPtr *cs);
+int OCIO_colorSpaceIsData(ConstColorSpaceRcPtr *cs);
void OCIO_colorSpaceRelease(ConstColorSpaceRcPtr *cs);
diff --git a/intern/opencolorio/ocio_capi_stub.cpp b/intern/opencolorio/ocio_capi_stub.cpp
index f910d1a34cf..2112b88ad72 100644
--- a/intern/opencolorio/ocio_capi_stub.cpp
+++ b/intern/opencolorio/ocio_capi_stub.cpp
@@ -174,6 +174,11 @@ int OCIO_colorSpaceIsInvertible(ConstColorSpaceRcPtr *cs)
return 1;
}
+int OCIO_colorSpaceIsData(ConstColorSpaceRcPtr *cs)
+{
+ return 0;
+}
+
void OCIO_colorSpaceRelease(ConstColorSpaceRcPtr *cs)
{
}