Files
UnrealEngineUWP/Engine/Source/Runtime/AnimGraphRuntime/Public/AnimNodes/AnimNode_StateResult.cpp
jose villarroel 95dd318cea Added Animation State Machine Library for common helper functions used in anim node functions:
*Added IsStateBlendingIn/Out to library
#jira none
[at]Thomas.Sarkanen, [at]Koray.Hagen
#preflight 619eab6488439fccfeab1615

#ROBOMERGE-AUTHOR: jose.villarroel
#ROBOMERGE-SOURCE: CL 18326309 in //UE5/Release-5.0/... via CL 18326338
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18326360 by jose villarroel in ue5-release-engine-test branch]
2021-11-30 12:12:43 -05:00

23 lines
597 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AnimNode_StateResult.h"
bool FAnimNode_StateResult::SerializeFromMismatchedTag(const FPropertyTag& Tag, FStructuredArchive::FSlot Slot)
{
if(Tag.Type == NAME_StructProperty && Tag.StructName == FAnimNode_Root::StaticStruct()->GetFName())
{
FAnimNode_Root OldValue;
FAnimNode_Root::StaticStruct()->SerializeItem(Slot, &OldValue, nullptr);
*static_cast<FAnimNode_Root*>(this) = OldValue;
return true;
}
return false;
}
int32 FAnimNode_StateResult::GetStateIndex() const
{
return GET_ANIM_NODE_DATA(int32, StateIndex);
}