You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb Nathan.Mitchell, Ryan.Schmidt #jira none #preflight 6377f29c2a05dabce9561a39 [CL 23206945 by semion piskarev in ue5-main branch]
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "GeometryProcessingInterfacesModule.h"
|
|
#include "CoreGlobals.h"
|
|
#include "Features/IModularFeatures.h"
|
|
#include "Modules/ModuleManager.h"
|
|
|
|
#include "GeometryProcessingInterfaces/ApproximateActors.h"
|
|
|
|
|
|
//DEFINE_LOG_CATEGORY_STATIC(LogMeshReduction, Verbose, All);
|
|
|
|
IMPLEMENT_MODULE(FGeometryProcessingInterfacesModule, GeometryProcessingInterfaces);
|
|
|
|
|
|
void FGeometryProcessingInterfacesModule::StartupModule()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
void FGeometryProcessingInterfacesModule::ShutdownModule()
|
|
{
|
|
ApproximateActors = nullptr;
|
|
}
|
|
|
|
|
|
IGeometryProcessing_ApproximateActors* FGeometryProcessingInterfacesModule::GetApproximateActorsImplementation()
|
|
{
|
|
if (ApproximateActors == nullptr)
|
|
{
|
|
TArray<IGeometryProcessing_ApproximateActors*> ApproximateActorsOptions =
|
|
IModularFeatures::Get().GetModularFeatureImplementations<IGeometryProcessing_ApproximateActors>(IGeometryProcessing_ApproximateActors::GetModularFeatureName());
|
|
|
|
ApproximateActors = (ApproximateActorsOptions.Num() > 0) ? ApproximateActorsOptions[0] : nullptr;
|
|
}
|
|
|
|
return ApproximateActors;
|
|
}
|