Skip to content

Commit

Permalink
ue5-main fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MothDoctor committed Sep 5, 2021
1 parent 3100f2c commit f9f66eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Source/FlowEditor/Private/Graph/FlowGraphSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "AssetRegistryModule.h"
#include "Developer/ToolMenus/Public/ToolMenus.h"
#include "EdGraph/EdGraph.h"
#include "Misc/HotReloadInterface.h"
#include "ScopedTransaction.h"
#include "UObject/UObjectIterator.h"

Expand Down Expand Up @@ -42,8 +41,7 @@ void UFlowGraphSchema::SubscribeToAssetChanges()
AssetRegistry.Get().OnAssetAdded().AddStatic(&UFlowGraphSchema::OnAssetAdded);
AssetRegistry.Get().OnAssetRemoved().AddStatic(&UFlowGraphSchema::RemoveAsset);

IHotReloadInterface& HotReloadSupport = FModuleManager::LoadModuleChecked<IHotReloadInterface>("HotReload");
HotReloadSupport.OnHotReload().AddStatic(&UFlowGraphSchema::OnHotReload);
FCoreUObjectDelegates::ReloadCompleteDelegate.AddStatic(&UFlowGraphSchema::OnHotReload);

if (GEditor)
{
Expand Down Expand Up @@ -298,7 +296,7 @@ void UFlowGraphSchema::GatherFlowNodes()
RefreshNodeList();
}

void UFlowGraphSchema::OnHotReload(bool bWasTriggeredAutomatically)
void UFlowGraphSchema::OnHotReload(EReloadCompleteReason ReloadCompleteReason)
{
GatherFlowNodes();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class SFlowNodeBlueprintCreateDialog final : public SCompoundWidget

// All child child classes of UFlowNode are valid
Filter->AllowedChildrenOfClasses.Add(UFlowNode::StaticClass());
Options.ClassFilter = Filter;
Options.ClassFilters = {Filter.ToSharedRef()};

ParentClassContainer->ClearChildren();
ParentClassContainer->AddSlot()
Expand Down
2 changes: 1 addition & 1 deletion Source/FlowEditor/Public/Graph/FlowGraphSchema.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class FLOWEDITOR_API UFlowGraphSchema : public UEdGraphSchema

static bool IsFlowNodePlaceable(const UClass* Class);
static void GatherFlowNodes();
static void OnHotReload(bool bWasTriggeredAutomatically);
static void OnHotReload(EReloadCompleteReason ReloadCompleteReason);

static void OnAssetAdded(const FAssetData& AssetData);
static void AddAsset(const FAssetData& AssetData, const bool bBatch);
Expand Down

0 comments on commit f9f66eb

Please sign in to comment.