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:
@@ -14,7 +14,7 @@ TonemapNode::TonemapNode(bNode *editor_node) : Node(editor_node)
|
||||
void TonemapNode::convert_to_operations(NodeConverter &converter,
|
||||
const CompositorContext & /*context*/) const
|
||||
{
|
||||
NodeTonemap *data = (NodeTonemap *)this->get_bnode()->storage;
|
||||
const NodeTonemap *data = (const NodeTonemap *)this->get_bnode()->storage;
|
||||
|
||||
TonemapOperation *operation = data->type == 1 ? new PhotoreceptorTonemapOperation() :
|
||||
new TonemapOperation();
|
||||
|
||||
Reference in New Issue
Block a user