Files
UnrealEngineUWP/Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Private/StateTreeObjectHash.cpp

15 lines
517 B
C++
Raw Normal View History

// Copyright Epic Games, Inc. All Rights Reserved.
#include "StateTreeObjectHash.h"
#if WITH_EDITORONLY_DATA
bool FStateTreeObjectCRC32::ShouldSkipProperty(const FProperty* InProperty) const
{
static const FName ExcludeFromHashName(TEXT("ExcludeFromHash"));
const bool bExclude = InProperty != nullptr && InProperty->HasMetaData(ExcludeFromHashName);
return FArchiveObjectCrc32::ShouldSkipProperty(InProperty) || InProperty->HasAllPropertyFlags(CPF_Transient) || bExclude;
}
#endif // WITH_EDITORONLY_DATA