2019-12-26 14:45:42 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2018-08-10 10:25:16 -04:00
|
|
|
|
|
|
|
|
#include "AnimNode_StateResult.h"
|
|
|
|
|
|
2018-08-15 08:58:12 -04:00
|
|
|
bool FAnimNode_StateResult::SerializeFromMismatchedTag(const FPropertyTag& Tag, FStructuredArchive::FSlot Slot)
|
2018-08-10 10:25:16 -04:00
|
|
|
{
|
|
|
|
|
if(Tag.Type == NAME_StructProperty && Tag.StructName == FAnimNode_Root::StaticStruct()->GetFName())
|
|
|
|
|
{
|
|
|
|
|
FAnimNode_Root OldValue;
|
2018-08-15 08:58:12 -04:00
|
|
|
FAnimNode_Root::StaticStruct()->SerializeItem(Slot, &OldValue, nullptr);
|
2018-08-10 10:25:16 -04:00
|
|
|
*static_cast<FAnimNode_Root*>(this) = OldValue;
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
2021-11-30 12:12:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int32 FAnimNode_StateResult::GetStateIndex() const
|
|
|
|
|
{
|
|
|
|
|
return GET_ANIM_NODE_DATA(int32, StateIndex);
|
|
|
|
|
}
|