Cleanup: Use actual class instead of base class
Use the TranslateCanvasOperation class in the declaration instead of its TranslateOperation class. This is just to clarify the code when reading it.
This commit is contained in:
parent
4d9678c483
commit
0709c07d04
|
@ -24,7 +24,7 @@ void TranslateNode::convert_to_operations(NodeConverter &converter,
|
||||||
NodeInput *input_ysocket = this->get_input_socket(2);
|
NodeInput *input_ysocket = this->get_input_socket(2);
|
||||||
NodeOutput *output_socket = this->get_output_socket(0);
|
NodeOutput *output_socket = this->get_output_socket(0);
|
||||||
|
|
||||||
TranslateOperation *operation = new TranslateCanvasOperation();
|
TranslateCanvasOperation *operation = new TranslateCanvasOperation();
|
||||||
operation->set_wrapping(data->wrap_axis);
|
operation->set_wrapping(data->wrap_axis);
|
||||||
operation->set_is_relative(data->relative);
|
operation->set_is_relative(data->relative);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue