Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/nodes/COM_TransformNode.cc
| Show All 34 Lines | void TransformNode::convertToOperations(NodeConverter &converter, | ||||
| const CompositorContext & /*context*/) const | const CompositorContext & /*context*/) const | ||||
| { | { | ||||
| NodeInput *imageInput = this->getInputSocket(0); | NodeInput *imageInput = this->getInputSocket(0); | ||||
| NodeInput *xInput = this->getInputSocket(1); | NodeInput *xInput = this->getInputSocket(1); | ||||
| NodeInput *yInput = this->getInputSocket(2); | NodeInput *yInput = this->getInputSocket(2); | ||||
| NodeInput *angleInput = this->getInputSocket(3); | NodeInput *angleInput = this->getInputSocket(3); | ||||
| NodeInput *scaleInput = this->getInputSocket(4); | NodeInput *scaleInput = this->getInputSocket(4); | ||||
| ScaleOperation *scaleOperation = new ScaleOperation(); | ScaleRelativeOperation *scaleOperation = new ScaleRelativeOperation(); | ||||
| converter.addOperation(scaleOperation); | converter.addOperation(scaleOperation); | ||||
| RotateOperation *rotateOperation = new RotateOperation(); | RotateOperation *rotateOperation = new RotateOperation(); | ||||
| rotateOperation->setDoDegree2RadConversion(false); | rotateOperation->setDoDegree2RadConversion(false); | ||||
| converter.addOperation(rotateOperation); | converter.addOperation(rotateOperation); | ||||
| TranslateOperation *translateOperation = new TranslateOperation(); | TranslateOperation *translateOperation = new TranslateOperation(); | ||||
| converter.addOperation(translateOperation); | converter.addOperation(translateOperation); | ||||
| Show All 21 Lines | |||||