You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
23 lines
1.0 KiB
C++
23 lines
1.0 KiB
C++
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#include "AnimBlueprintCompilerHandler_LinkedAnimGraph.h"
|
||
|
|
#include "AnimGraphNode_LinkedAnimGraphBase.h"
|
||
|
|
#include "IAnimBlueprintCompilerCreationContext.h"
|
||
|
|
#include "IAnimBlueprintCompilationContext.h"
|
||
|
|
#include "IAnimBlueprintGeneratedClassCompiledData.h"
|
||
|
|
|
||
|
|
FAnimBlueprintCompilerHandler_LinkedAnimGraph::FAnimBlueprintCompilerHandler_LinkedAnimGraph(IAnimBlueprintCompilerCreationContext& InCreationContext)
|
||
|
|
{
|
||
|
|
InCreationContext.OnPreProcessAnimationNodes().AddRaw(this, &FAnimBlueprintCompilerHandler_LinkedAnimGraph::PreProcessAnimationNodes);
|
||
|
|
}
|
||
|
|
|
||
|
|
void FAnimBlueprintCompilerHandler_LinkedAnimGraph::PreProcessAnimationNodes(TArrayView<UAnimGraphNode_Base*> InAnimNodes, IAnimBlueprintCompilationContext& InCompilationContext, IAnimBlueprintGeneratedClassCompiledData& OutCompiledData)
|
||
|
|
{
|
||
|
|
for(UAnimGraphNode_Base* AnimNode : InAnimNodes)
|
||
|
|
{
|
||
|
|
if(UAnimGraphNode_LinkedAnimGraphBase* LinkedAnimGraphBase = Cast<UAnimGraphNode_LinkedAnimGraphBase>(AnimNode))
|
||
|
|
{
|
||
|
|
LinkedAnimGraphBase->AllocatePoseLinks();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|