| 19 | PCGEX_INITIALIZE_ELEMENT(Orient) |
| 20 | |
| 21 | bool FPCGExOrientElement::Boot(FPCGExContext* InContext) const |
| 22 | { |
| 23 | if (!FPCGExPathProcessorElement::Boot(InContext)) { return false; } |
| 24 | |
| 25 | PCGEX_CONTEXT_AND_SETTINGS(Orient) |
| 26 | |
| 27 | if (!Settings->Orientation) |
| 28 | { |
| 29 | PCGE_LOG(Error, GraphAndLog, FTEXT("Please select an orientation module in the detail panel.")); |
| 30 | return false; |
| 31 | } |
| 32 | |
| 33 | if (Settings->Output == EPCGExOrientUsage::OutputToAttribute) { PCGEX_VALIDATE_NAME(Settings->OutputAttribute); } |
| 34 | if (Settings->bOutputDot) { PCGEX_VALIDATE_NAME(Settings->DotAttribute); } |
| 35 | |
| 36 | PCGEX_OPERATION_BIND(Orientation, UPCGExOrientOperation, PCGExOrient::SourceOverridesOrient) |
| 37 | Context->Orientation->OrientAxis = Settings->OrientAxis; |
| 38 | Context->Orientation->UpAxis = Settings->UpAxis; |
| 39 | |
| 40 | return true; |
| 41 | } |
| 42 | |
| 43 | bool FPCGExOrientElement::ExecuteInternal(FPCGContext* InContext) const |
| 44 | { |
nothing calls this directly
no outgoing calls
no test coverage detected