Files
UnrealEngineUWP/Engine/Plugins/Experimental/GeometryCollectionPlugin/Source/GeometryCollectionNodes/Private/Dataflow/GeometryCollectionProcessingNodes.cpp

35 lines
759 B
C++
Raw Normal View History

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Dataflow/GeometryCollectionProcessingNodes.h"
#include "GeometryCollection/ManagedArrayCollection.h"
#include "GeometryCollection/GeometryCollection.h"
namespace Dataflow
{
void GeometryCollectionProcessingNodes()
{
DATAFLOW_NODE_REGISTER_CREATION_FACTORY(FCloseGeometryOnCollectionDataflowNode);
}
}
void FCloseGeometryOnCollectionDataflowNode::Evaluate(Dataflow::FContext& Context, const FDataflowOutput* Out) const
{
if (Out->IsA<DataType>(&Collection))
{
DataType InCollection = GetValue<DataType>(Context, &Collection);
//
// @todo(dataflow) : Implemention that closes the geometry on the collection
//
SetValue<DataType>(Context, InCollection, &Collection);
}
}