Files
UnrealEngineUWP/Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Private/StateTreeObjectHash.cpp
mikko mononen 4c4df21caf StateTree Editor compile improvements
- Added Compile button and compilation state indication
- Removed compile-on-save
- Prevent compiling during PIE

#jira UE-140363
[REVIEW]
#preflight 61f91266c54b18c42dcefc21

#ROBOMERGE-AUTHOR: mikko.mononen
#ROBOMERGE-SOURCE: CL 18806713 in //UE5/Release-5.0/... via CL 18808593 via CL 18822193
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18822498 by mikko mononen in ue5-main branch]
2022-02-02 02:46:49 -05:00

15 lines
517 B
C++

// 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