Skip to content

Commit ee68dd2

Browse files
committed
Fix for issues with unity builds.
There was a missing include for "Kismet2/KismetEditorUtilities.h" which exposed an issue with the Generic graph editor module definiton. Moving the IMPLEMENT_MODULE from the module header to the cpp will fix any resultant errors with including the file.
1 parent bc270c0 commit ee68dd2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Source/GenericGraphEditor/Private/GenericGraphEditor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ void FGenericGraphEditor::RegisterAssetTypeAction(IAssetTools& AssetTools, TShar
4949
CreatedAssetTypeActions.Add(Action);
5050
}
5151

52+
IMPLEMENT_MODULE(FGenericGraphEditor, GenericGraphEditor)
53+
5254
#undef LOCTEXT_NAMESPACE
5355

Source/GenericGraphEditor/Private/GenericGraphFactory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "ClassViewerModule.h"
55
#include "ClassViewerFilter.h"
6+
#include "Kismet2/KismetEditorUtilities.h"
67
#include "Kismet2/SClassPickerDialog.h"
78

89
#define LOCTEXT_NAMESPACE "GenericGraphFactory"

Source/GenericGraphEditor/Public/GenericGraphEditor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ class FGenericGraphEditor : public IGenericGraphEditor
2020
EAssetTypeCategories::Type GenericGraphAssetCategoryBit;
2121

2222
TSharedPtr<FGraphPanelNodeFactory> GraphPanelNodeFactory_GenericGraph;
23-
};
24-
25-
IMPLEMENT_MODULE(FGenericGraphEditor, GenericGraphEditor)
23+
};

0 commit comments

Comments
 (0)