Cleanup: Use const for node data in compositor
Push the const usage a bit further for compositor nodes, so that they are more explicit about not modifying original nodes from the editor. Differential Revision: https://developer.blender.org/D15822
This commit is contained in:
@@ -19,7 +19,7 @@ void DifferenceMatteNode::convert_to_operations(NodeConverter &converter,
|
||||
NodeInput *input_socket2 = this->get_input_socket(1);
|
||||
NodeOutput *output_socket_image = this->get_output_socket(0);
|
||||
NodeOutput *output_socket_matte = this->get_output_socket(1);
|
||||
bNode *editor_node = this->get_bnode();
|
||||
const bNode *editor_node = this->get_bnode();
|
||||
|
||||
DifferenceMatteOperation *operation_set = new DifferenceMatteOperation();
|
||||
operation_set->set_settings((NodeChroma *)editor_node->storage);
|
||||
|
||||
Reference in New Issue
Block a user