Skip to content

Commit 59ed316

Browse files
author
ikrima
committed
Fixing 4.17 compilation bugs & warnings
-Minor issues with incremental compilation with missing headers
1 parent 87bc4ad commit 59ed316

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

Source/PythonConsole/Private/PythonConsoleModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "SDockTab.h"
88
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructure.h"
99

10-
IMPLEMENT_MODULE( FPythonConsoleModule, PythonLog );
10+
IMPLEMENT_MODULE( FPythonConsoleModule, PythonConsole );
1111

1212
namespace PythonConsoleModule
1313
{

Source/UnrealEnginePython/Private/PythonScript.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "UnrealEnginePythonPrivatePCH.h"
2-
32
#include "PythonScript.h"
43

54
static void callback(void *arg) {

Source/UnrealEnginePython/Private/Slate/UEPySFilePathPicker.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
#if WITH_EDITOR
2-
#if ENGINE_MINOR_VERSION > 13
31
#include "UnrealEnginePythonPrivatePCH.h"
4-
52
#include "UEPySFilePathPicker.h"
63

4+
#if WITH_EDITOR
5+
#if ENGINE_MINOR_VERSION > 13
76
#define sw_file_path_picker StaticCastSharedRef<SFilePathPicker>(self->s_compound_widget.s_widget.s_widget)
87

98

Source/UnrealEnginePython/Private/Slate/UEPySFilePathPicker.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
#include "UnrealEnginePython.h"
44

5-
65
#include "UEPySCompoundWidget.h"
76

7+
#if WITH_EDITOR
88
#if ENGINE_MINOR_VERSION > 13
99
#include "Developer/DesktopWidgets/Public/Widgets/Input/SFilePathPicker.h"
1010

@@ -17,3 +17,4 @@ typedef struct {
1717

1818
void ue_python_init_sfile_path_picker(PyObject *);
1919
#endif
20+
#endif

Source/UnrealEnginePython/Private/UEPyEditor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,11 @@ PyObject *py_unreal_engine_move_selected_actors_to_level(PyObject *self, PyObjec
17181718

17191719
ULevel *level = (ULevel *)py_obj_level->ue_object;
17201720

1721+
#if ENGINE_MINOR_VERSION >= 17
1722+
UEditorLevelUtils::MoveSelectedActorsToLevel(level);
1723+
#else
17211724
GEditor->MoveSelectedActorsToLevel(level);
1725+
#endif
17221726

17231727
Py_INCREF(Py_None);
17241728
return Py_None;

Source/UnrealEnginePython/Public/PythonScript.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

3-
3+
#include "CoreMinimal.h"
4+
#include "UObject/Object.h"
45
#include "PythonScript.generated.h"
56

67
UCLASS(MinimalAPI)

0 commit comments

Comments
 (0)