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:
@@ -15,7 +15,7 @@ LensDistortionNode::LensDistortionNode(bNode *editor_node) : Node(editor_node)
|
||||
void LensDistortionNode::convert_to_operations(NodeConverter &converter,
|
||||
const CompositorContext & /*context*/) const
|
||||
{
|
||||
bNode *editor_node = this->get_bnode();
|
||||
const bNode *editor_node = this->get_bnode();
|
||||
NodeLensDist *data = (NodeLensDist *)editor_node->storage;
|
||||
if (data->proj) {
|
||||
ProjectorLensDistortionOperation *operation = new ProjectorLensDistortionOperation();
|
||||
|
||||
Reference in New Issue
Block a user