Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove leftover code of the baking transform.

Wolthera van Hövell tot Westerflier13bca2d19021
diff --git a/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp b/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp
index 50db230033..ff9fa5098f 100644
--- a/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp
+++ b/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp
@@ -195,15 +195,6 @@ void OcioDisplayFilter::updateProcessor()
OCIO::GroupTransformRcPtr approximateTransform = OCIO::GroupTransform::Create();
- const char *currentColorSpaceName = inputColorSpaceName;
-
- // baking: convert in-space to role_linear for the exposure control.
- OCIO::ColorSpaceTransformRcPtr csToLinear = OCIO::ColorSpaceTransform::Create();
- csToLinear->setSrc(inputColorSpaceName);
- csToLinear->setDst(OCIO::ROLE_SCENE_LINEAR);
- currentColorSpaceName = OCIO::ROLE_SCENE_LINEAR;
-
-
// fstop exposure control -- not sure how that translates to our exposure
{
const double exposureGain = pow(2.0, exposure);
@@ -231,18 +222,6 @@ void OcioDisplayFilter::updateProcessor()
approximateTransform->appendTransform(mtx);
}
- if (look) {
- OCIO::LookTransformRcPtr lookTransform = OCIO::LookTransform::Create();
- lookTransform->setSrc(currentColorSpaceName);
- lookTransform->setLooks(look);
- lookTransform->setDst(inputColorSpaceName);
- } else {
- OCIO::ColorSpaceTransformRcPtr linearToCs = OCIO::ColorSpaceTransform::Create();
- linearToCs->setSrc(currentColorSpaceName);
- linearToCs->setDst(inputColorSpaceName);
- currentColorSpaceName = inputColorSpaceName;
- }
-
// channel swizzle
{
int channelHot[4];