Files
UnrealEngine/Engine/Plugins/ChaosClothAssetEditor/Source/ChaosClothAssetDataflowNodes/Private/ChaosClothAsset/SimulationMultiResConfigNode.cpp
2025-05-18 13:04:45 +08:00

35 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ChaosClothAsset/SimulationMultiResConfigNode.h"
#include "Chaos/CollectionPropertyFacade.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(SimulationMultiResConfigNode)
FChaosClothAssetSimulationMultiResConfigNode::FChaosClothAssetSimulationMultiResConfigNode(const UE::Dataflow::FNodeParameters& InParam, FGuid InGuid)
: FChaosClothAssetSimulationBaseConfigNode(InParam, InGuid)
{
RegisterCollectionConnections();
RegisterInputConnection(&MultiResStiffness.WeightMap)
.SetCanHidePin(true)
.SetPinIsHidden(true);
RegisterInputConnection(&MultiResVelocityTargetStiffness.WeightMap)
.SetCanHidePin(true)
.SetPinIsHidden(true);
}
void FChaosClothAssetSimulationMultiResConfigNode::AddProperties(FPropertyHelper& PropertyHelper) const
{
if (bIsFineLOD)
{
PropertyHelper.SetProperty(this, &MultiResCoarseLODIndex);
PropertyHelper.SetPropertyBool(this, &bMultiResUseXPBD);
PropertyHelper.SetPropertyWeighted(this, &MultiResStiffness);
PropertyHelper.SetPropertyWeighted(this, &MultiResVelocityTargetStiffness);
}
if (bIsCoarseMultiResLOD)
{
PropertyHelper.SetPropertyBool(this, &bIsCoarseMultiResLOD);
}
}