You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Removed direct access to currently compiling BP class to restrict unguarded mutation. Const-corrected various accessors and overrides. Moved UObject-based compiler subsystems to 'handlers' and removed UObject dependency. Moved from set of virtual functions on subsystems/handlers to a restricted set of contexts passed to specific multicast delegates that handlers subscribe to. Removed anim class subsystems. Moved property access code to engine module (editor code is still in a plugin). Fixed nativized builds where anim BPs have nativized/non-nativized classes in the hierarchy #rb Dan.OConnor #jira none [CL 14278258 by Thomas Sarkanen in ue5-main branch]
135 lines
4.5 KiB
C++
135 lines
4.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AnimBlueprintCompilationContext.h"
|
|
#include "AnimBlueprintCompiler.h"
|
|
|
|
TUniquePtr<IAnimBlueprintCompilationContext> IAnimBlueprintCompilationContext::Get(FKismetCompilerContext& InKismetCompiler)
|
|
{
|
|
return TUniquePtr<IAnimBlueprintCompilationContext>(new FAnimBlueprintCompilationContext(static_cast<FAnimBlueprintCompilerContext*>(&InKismetCompiler)));
|
|
}
|
|
|
|
void FAnimBlueprintCompilationContext::AddPoseLinkMappingRecordImpl(const FPoseLinkMappingRecord& InRecord)
|
|
{
|
|
CompilerContext->ValidPoseLinkList.Add(InRecord);
|
|
}
|
|
|
|
void FAnimBlueprintCompilationContext::ProcessAnimationNodesImpl(TArray<UAnimGraphNode_Base*>& AnimNodeList)
|
|
{
|
|
CompilerContext->ProcessAnimationNodes(AnimNodeList);
|
|
}
|
|
|
|
void FAnimBlueprintCompilationContext::PruneIsolatedAnimationNodesImpl(const TArray<UAnimGraphNode_Base*>& RootSet, TArray<UAnimGraphNode_Base*>& GraphNodes)
|
|
{
|
|
CompilerContext->PruneIsolatedAnimationNodes(RootSet, GraphNodes);
|
|
}
|
|
|
|
void FAnimBlueprintCompilationContext::ExpansionStepImpl(UEdGraph* Graph, bool bAllowUbergraphExpansions)
|
|
{
|
|
CompilerContext->ExpansionStep(Graph, bAllowUbergraphExpansions);
|
|
}
|
|
|
|
FCompilerResultsLog& FAnimBlueprintCompilationContext::GetMessageLogImpl() const
|
|
{
|
|
return CompilerContext->MessageLog;
|
|
}
|
|
|
|
bool FAnimBlueprintCompilationContext::ValidateGraphIsWellFormedImpl(UEdGraph* Graph) const
|
|
{
|
|
return CompilerContext->ValidateGraphIsWellFormed(Graph);
|
|
}
|
|
|
|
int32 FAnimBlueprintCompilationContext::GetAllocationIndexOfNodeImpl(UAnimGraphNode_Base* VisualAnimNode) const
|
|
{
|
|
return CompilerContext->GetAllocationIndexOfNode(VisualAnimNode);
|
|
}
|
|
|
|
const UBlueprint* FAnimBlueprintCompilationContext::GetBlueprintImpl() const
|
|
{
|
|
return CompilerContext->Blueprint;
|
|
}
|
|
|
|
const UAnimBlueprint* FAnimBlueprintCompilationContext::GetAnimBlueprintImpl() const
|
|
{
|
|
return CompilerContext->AnimBlueprint;
|
|
}
|
|
|
|
UEdGraph* FAnimBlueprintCompilationContext::GetConsolidatedEventGraphImpl() const
|
|
{
|
|
return CompilerContext->ConsolidatedEventGraph;
|
|
}
|
|
|
|
void FAnimBlueprintCompilationContext::GetLinkedAnimNodesImpl(UAnimGraphNode_Base* InGraphNode, TArray<UAnimGraphNode_Base*>& LinkedAnimNodes) const
|
|
{
|
|
CompilerContext->GetLinkedAnimNodes(InGraphNode, LinkedAnimNodes);
|
|
}
|
|
|
|
const TMap<UAnimGraphNode_Base*, int32>& FAnimBlueprintCompilationContext::GetAllocatedAnimNodeIndicesImpl() const
|
|
{
|
|
return CompilerContext->AllocatedAnimNodeIndices;
|
|
}
|
|
|
|
const TMap<UAnimGraphNode_Base*, UAnimGraphNode_Base*>& FAnimBlueprintCompilationContext::GetSourceNodeToProcessedNodeMapImpl() const
|
|
{
|
|
return CompilerContext->SourceNodeToProcessedNodeMap;
|
|
}
|
|
|
|
const TMap<int32, FProperty*>& FAnimBlueprintCompilationContext::GetAllocatedPropertiesByIndexImpl() const
|
|
{
|
|
return CompilerContext->AllocatedPropertiesByIndex;
|
|
}
|
|
|
|
const TMap<UAnimGraphNode_Base*, FProperty*>& FAnimBlueprintCompilationContext::GetAllocatedPropertiesByNodeImpl() const
|
|
{
|
|
return CompilerContext->AllocatedAnimNodes;
|
|
}
|
|
|
|
IAnimBlueprintCompilerHandler* FAnimBlueprintCompilationContext::GetHandlerInternal(FName InName) const
|
|
{
|
|
return CompilerContext->AnimBlueprintCompilerHandlerCollection.GetHandler<IAnimBlueprintCompilerHandler>(InName);
|
|
}
|
|
|
|
FKismetCompilerContext* FAnimBlueprintCompilationContext::GetKismetCompiler() const
|
|
{
|
|
return static_cast<FKismetCompilerContext*>(CompilerContext);
|
|
}
|
|
|
|
FCompilerResultsLog& FAnimBlueprintCompilationBracketContext::GetMessageLogImpl() const
|
|
{
|
|
return CompilerContext->MessageLog;
|
|
}
|
|
|
|
IAnimBlueprintCompilerHandler* FAnimBlueprintCompilationBracketContext::GetHandlerInternal(FName InName) const
|
|
{
|
|
return CompilerContext->AnimBlueprintCompilerHandlerCollection.GetHandler<IAnimBlueprintCompilerHandler>(InName);
|
|
}
|
|
|
|
FCompilerResultsLog& FAnimBlueprintCopyTermDefaultsContext::GetMessageLogImpl() const
|
|
{
|
|
return CompilerContext->MessageLog;
|
|
}
|
|
|
|
const UAnimBlueprint* FAnimBlueprintCopyTermDefaultsContext::GetAnimBlueprintImpl() const
|
|
{
|
|
return CompilerContext->AnimBlueprint;
|
|
}
|
|
|
|
FCompilerResultsLog& FAnimBlueprintPostExpansionStepContext::GetMessageLogImpl() const
|
|
{
|
|
return CompilerContext->MessageLog;
|
|
}
|
|
|
|
UEdGraph* FAnimBlueprintPostExpansionStepContext::GetConsolidatedEventGraphImpl() const
|
|
{
|
|
return CompilerContext->ConsolidatedEventGraph;
|
|
}
|
|
|
|
const FKismetCompilerOptions& FAnimBlueprintPostExpansionStepContext::GetCompileOptionsImpl() const
|
|
{
|
|
return CompilerContext->CompileOptions;
|
|
}
|
|
|
|
IAnimBlueprintCompilerHandler* FAnimBlueprintPostExpansionStepContext::GetHandlerInternal(FName InName) const
|
|
{
|
|
return CompilerContext->AnimBlueprintCompilerHandlerCollection.GetHandler<IAnimBlueprintCompilerHandler>(InName);
|
|
}
|