Files
UnrealEngineUWP/Engine/Source/Runtime/AnimGraphRuntime/Public/AnimNodes/AnimNode_StateResult.cpp
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

17 lines
503 B
C++

// Copyright 1998-2019 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;
}