25 lines
850 B
C++
25 lines
850 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
#include "InterchangeCardsPipeline.h"
|
|
|
|
#include "CoreGlobals.h"
|
|
#include "InterchangeSourceData.h"
|
|
#include "Nodes/InterchangeBaseNodeContainer.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(InterchangeCardsPipeline)
|
|
|
|
void UInterchangeCardsPipeline::SetDisabledFactoryNodes(TArray<UClass*> FactoryNodeClasses)
|
|
{
|
|
FactoryNodeClassesToDisabled = FactoryNodeClasses;
|
|
}
|
|
|
|
void UInterchangeCardsPipeline::ExecutePipeline(UInterchangeBaseNodeContainer* BaseNodeContainer, const TArray<UInterchangeSourceData*>& SourceDatas, const FString& ContentBasePath)
|
|
{
|
|
BaseNodeContainer->IterateNodesOfType<UInterchangeFactoryBaseNode>([this](const FString& NodeUid, UInterchangeFactoryBaseNode* Node)
|
|
{
|
|
if (FactoryNodeClassesToDisabled.Contains(Node->GetClass()))
|
|
{
|
|
Node->SetEnabled(false);
|
|
}
|
|
});
|
|
}
|