Files
UnrealEngineUWP/Engine/Source/Developer/Datasmith/DatasmithExporterUI/Private/DatasmithExporterUIModule.cpp
Marcus Wassmer 3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00

34 lines
674 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::WasInitilizedWithMessaging() )
{
DirectLinkUI = MakeUnique<FDirectLinkUI>();
}
#endif
}
IDirectLinkUI* FDatasmithExporterUIModule::GetDirectLinkExporterUI() const
{
return DirectLinkUI.Get();
}