Fix T47212: incorrect luma coefficients for Luminance Key node.

Differential Revision: https://developer.blender.org/D2982
This commit is contained in:
2018-01-06 16:41:33 +01:00
parent c6abf41f71
commit 0e59f2b256
2 changed files with 12 additions and 18 deletions

View File

@@ -37,14 +37,11 @@ void LuminanceMatteNode::convertToOperations(NodeConverter &converter, const Com
NodeOutput *outputSocketImage = this->getOutputSocket(0);
NodeOutput *outputSocketMatte = this->getOutputSocket(1);
ConvertRGBToYUVOperation *rgbToYUV = new ConvertRGBToYUVOperation();
LuminanceMatteOperation *operationSet = new LuminanceMatteOperation();
operationSet->setSettings((NodeChroma *)editorsnode->storage);
converter.addOperation(rgbToYUV);
converter.addOperation(operationSet);
converter.mapInputSocket(inputSocket, rgbToYUV->getInputSocket(0));
converter.addLink(rgbToYUV->getOutputSocket(), operationSet->getInputSocket(0));
converter.mapInputSocket(inputSocket, operationSet->getInputSocket(0));
converter.mapOutputSocket(outputSocketMatte, operationSet->getOutputSocket(0));
SetAlphaOperation *operation = new SetAlphaOperation();