You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-223488 #rb jordi.rovira #tests Editor #rnx #virtualized [CL 36035608 by alexei lebedev in ue5-main branch]
100 lines
2.8 KiB
C++
100 lines
2.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MuT/NodeMeshMorph.h"
|
|
|
|
#include "Containers/Array.h"
|
|
#include "HAL/PlatformCrt.h"
|
|
#include "Misc/AssertionMacros.h"
|
|
#include "MuT/NodeLayout.h"
|
|
#include "MuT/NodeMeshMorphPrivate.h"
|
|
#include "MuT/NodeMeshPrivate.h"
|
|
#include "MuT/NodePrivate.h"
|
|
#include "MuT/NodeScalar.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Static initialisation
|
|
//---------------------------------------------------------------------------------------------
|
|
FNodeType NodeMeshMorph::Private::s_type = FNodeType(Node::EType::MeshMorph, NodeMesh::GetStaticType() );
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
//!
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeMeshMorph )
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Own Interface
|
|
//---------------------------------------------------------------------------------------------
|
|
Ptr<NodeScalar> NodeMeshMorph::GetFactor() const
|
|
{
|
|
return m_pD->Factor.get();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshMorph::SetFactor( Ptr<NodeScalar> pNode )
|
|
{
|
|
m_pD->Factor = pNode;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
Ptr<NodeMesh> NodeMeshMorph::GetBase() const
|
|
{
|
|
return m_pD->Base.get();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshMorph::SetBase( Ptr<NodeMesh> pNode )
|
|
{
|
|
m_pD->Base = pNode;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
NodeMeshPtr NodeMeshMorph::GetMorph() const
|
|
{
|
|
return m_pD->Morph.get();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshMorph::SetMorph( Ptr<NodeMesh> pNode )
|
|
{
|
|
m_pD->Morph = pNode;
|
|
}
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshMorph::SetReshapeSkeleton(bool bEnable)
|
|
{
|
|
m_pD->bReshapeSkeleton = bEnable;
|
|
}
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshMorph::AddBoneToDeform(const FBoneName& BoneId)
|
|
{
|
|
m_pD->BonesToDeform.Emplace(BoneId);
|
|
}
|
|
|
|
void NodeMeshMorph::AddPhysicsBodyToDeform(const FBoneName& BoneId)
|
|
{
|
|
m_pD->PhysicsToDeform.Emplace(BoneId);
|
|
}
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshMorph::SetReshapePhysicsVolumes(bool bEnable)
|
|
{
|
|
m_pD->bReshapePhysicsVolumes = bEnable;
|
|
}
|
|
|
|
}
|
|
|
|
|