MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / Boot

Method Boot

Source/PCGExtendedToolkit/Private/Paths/PCGExOrient.cpp:21–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19PCGEX_INITIALIZE_ELEMENT(Orient)
20
21bool 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
43bool FPCGExOrientElement::ExecuteInternal(FPCGContext* InContext) const
44{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected