Files
alexei lebedev 2815323fbc [mutable] Moved the Mutable plugin out of Experimental status into Beta.
#jira UE-223488
#rb jordi.rovira
#tests Editor
#rnx

#virtualized

[CL 36035608 by alexei lebedev in ue5-main branch]
2024-09-05 07:16:19 -04:00

35 lines
958 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MuT/NodeImageConstant.h"
#include "Misc/AssertionMacros.h"
#include "MuR/Image.h"
#include "MuR/Serialisation.h"
#include "MuT/NodePrivate.h"
namespace mu
{
//---------------------------------------------------------------------------------------------
// Static initialisation
//---------------------------------------------------------------------------------------------
FNodeType NodeImageConstant::StaticType = FNodeType(Node::EType::ImageConstant, NodeImage::GetStaticType());
//---------------------------------------------------------------------------------------------
void NodeImageConstant::SetValue(const Image* Value)
{
Proxy = new ResourceProxyMemory<Image>(Value);
}
//---------------------------------------------------------------------------------------------
void NodeImageConstant::SetValue(Ptr<ResourceProxy<Image>> InProxy)
{
Proxy = InProxy;
}
}