Files
UnrealEngineUWP/Engine/Source/Editor/MeshPaint/Private/MeshPaintAdapterFactory.cpp
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

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();
}
}