Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_InvertOperation.cc
| Show All 23 Lines | |||||
| { | { | ||||
| this->addInputSocket(DataType::Value); | this->addInputSocket(DataType::Value); | ||||
| this->addInputSocket(DataType::Color); | this->addInputSocket(DataType::Color); | ||||
| this->addOutputSocket(DataType::Color); | this->addOutputSocket(DataType::Color); | ||||
| this->m_inputValueProgram = nullptr; | this->m_inputValueProgram = nullptr; | ||||
| this->m_inputColorProgram = nullptr; | this->m_inputColorProgram = nullptr; | ||||
| this->m_color = true; | this->m_color = true; | ||||
| this->m_alpha = false; | this->m_alpha = false; | ||||
| setResolutionInputSocketIndex(1); | set_canvas_input_index(1); | ||||
| this->flags.can_be_constant = true; | this->flags.can_be_constant = true; | ||||
| } | } | ||||
| void InvertOperation::initExecution() | void InvertOperation::initExecution() | ||||
| { | { | ||||
| this->m_inputValueProgram = this->getInputSocketReader(0); | this->m_inputValueProgram = this->getInputSocketReader(0); | ||||
| this->m_inputColorProgram = this->getInputSocketReader(1); | this->m_inputColorProgram = this->getInputSocketReader(1); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||