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:
@@ -22,7 +22,7 @@ class BoxMaskOperation : public MultiThreadedOperation {
|
||||
float aspect_ratio_;
|
||||
int mask_type_;
|
||||
|
||||
NodeBoxMask *data_;
|
||||
const NodeBoxMask *data_;
|
||||
|
||||
public:
|
||||
BoxMaskOperation();
|
||||
@@ -42,7 +42,7 @@ class BoxMaskOperation : public MultiThreadedOperation {
|
||||
*/
|
||||
void deinit_execution() override;
|
||||
|
||||
void set_data(NodeBoxMask *data)
|
||||
void set_data(const NodeBoxMask *data)
|
||||
{
|
||||
data_ = data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user