Files
UnrealEngineUWP/Engine/Source/Developer/Datasmith/DatasmithExporterUI/Private/DatasmithExporterUIModule.cpp
Marc Audy 0cbbc781ca Merge UE5/Release-Engine-Staging @ 15740152 to UE5/Main
This represents UE4/Main @ 15709114

[CL 15740605 by Marc Audy in ue5-main branch]
2021-03-18 15:20:03 -04:00

34 lines
675 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "DatasmithExporterUIModule.h"
#include "DatasmithExporterManager.h"
#include "DirectLinkUI.h"
#include <atomic>
std::atomic<class FDatasmithExporterUIModule*> GExporterUIModule(nullptr);
IDatasmithExporterUIModule* IDatasmithExporterUIModule::Get()
{
return GExporterUIModule;
}
void FDatasmithExporterUIModule::StartupModule()
{
GExporterUIModule = this;
#if IS_PROGRAM
if ( FDatasmithExporterManager::WasInitializedWithMessaging() )
{
DirectLinkUI = MakeUnique<FDirectLinkUI>();
}
#endif
}
IDirectLinkUI* FDatasmithExporterUIModule::GetDirectLinkExporterUI() const
{
return DirectLinkUI.Get();
}