You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
32 lines
771 B
C++
32 lines
771 B
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MeshPaintAdapterFactory.h"
|
|
#include "IMeshPaintGeometryAdapterFactory.h"
|
|
|
|
TArray<TSharedPtr<class IMeshPaintGeometryAdapterFactory>> FMeshPaintAdapterFactory::FactoryList;
|
|
|
|
TSharedPtr<class IMeshPaintGeometryAdapter> FMeshPaintAdapterFactory::CreateAdapterForMesh(UMeshComponent* InComponent, int32 InPaintingMeshLODIndex)
|
|
{
|
|
TSharedPtr<IMeshPaintGeometryAdapter> Result;
|
|
|
|
for (const auto& Factory : FactoryList)
|
|
{
|
|
Result = Factory->Construct(InComponent, InPaintingMeshLODIndex);
|
|
|
|
if (Result.IsValid())
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
|
|
return Result;
|
|
}
|
|
|
|
void FMeshPaintAdapterFactory::InitializeAdapterGlobals()
|
|
{
|
|
for (const auto& Factory : FactoryList)
|
|
{
|
|
Factory->InitializeAdapterGlobals();
|
|
}
|
|
}
|