-
Notifications
You must be signed in to change notification settings - Fork 348
Expand file tree
/
Copy pathFlowGraphEditorSettings.cpp
More file actions
33 lines (28 loc) · 1.08 KB
/
FlowGraphEditorSettings.cpp
File metadata and controls
33 lines (28 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright https://github.com/MothCocoon/FlowGraph/graphs/contributors
#include "Graph/FlowGraphEditorSettings.h"
#include "Graph/FlowGraphSchema.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(FlowGraphEditorSettings)
UFlowGraphEditorSettings::UFlowGraphEditorSettings()
: bShowWelcomeWindowOnStartup(true)
, NodeDoubleClickTarget(EFlowNodeDoubleClickTarget::PrimaryAssetOrNodeDefinition)
, bShowNodeClass(false)
, bShowNodeDescriptionWhilePlaying(true)
, bShowAddonDescriptions(true)
, bEnforceFriendlyPinNames(false)
, bShowSubGraphPreview(true)
, bShowSubGraphPath(true)
, SubGraphPreviewSize(FVector2D(640.f, 360.f))
, bHighlightInputWiresOfSelectedNodes(false)
, bHighlightOutputWiresOfSelectedNodes(false)
{
}
#if WITH_EDITOR
void UFlowGraphEditorSettings::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
if (PropertyChangedEvent.GetMemberPropertyName() == GET_MEMBER_NAME_CHECKED(UFlowGraphEditorSettings, bShowNodeClass))
{
GetDefault<UFlowGraphSchema>()->ForceVisualizationCacheClear();
}
}
#endif