Files
UnrealEngineUWP/Engine/Source/Runtime/AnimGraphRuntime/Private/AnimGraphRuntimeModule.cpp
jurre debaare 00f3de9115 Change moment of initialization of Animation Attribute system - previously had a race-condition triggered through parallel eval
#jira none
#rb Thomas.Sarkanen
#preflight 60c368d69a5910000144d18e

#ROBOMERGE-SOURCE: CL 16641483 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v831-16623017)

[CL 16641490 by jurre debaare in ue5-release-engine-test branch]
2021-06-11 10:51:02 -04:00

32 lines
795 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
#include "BoneControllers/AnimNode_AnimDynamics.h"
#include "UObject/UObjectIterator.h"
#include "Animation/AnimInstance.h"
#include "Animation/AttributeTypes.h"
//////////////////////////////////////////////////////////////////////////
// FAnimGraphRuntimeModule
class FAnimGraphRuntimeModule : public IModuleInterface
{
public:
virtual void StartupModule() override
{
FCoreDelegates::OnPostEngineInit.AddLambda([]()
{
UE::Anim::AttributeTypes::Initialize();
});
}
virtual void ShutdownModule() override
{
}
};
//////////////////////////////////////////////////////////////////////////
IMPLEMENT_MODULE(FAnimGraphRuntimeModule, AnimGraphRuntime);