Skip to content

Commit 987c503

Browse files
author
Roberto De Ioris
committed
fixed non editor build
1 parent 33ac302 commit 987c503

16 files changed

Lines changed: 46 additions & 19 deletions

‎Source/UnrealEnginePython/Private/Slate/UEPyFModifierKeysState.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#if ENGINE_MINOR_VERSION <= 15
66
#include "Runtime/Core/Public/GenericPlatform/GenericApplication.h"
7+
#else
8+
#include "Runtime/ApplicationCore/Public/GenericPlatform/GenericApplication.h"
79
#endif
810

911
typedef struct

‎Source/UnrealEnginePython/Private/Slate/UEPyIStructureDetailsView.h‎

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

33
#include "UEPyModule.h"
44

5-
#include "IStructureDetailsView.h"
65

76
#if WITH_EDITOR
7+
8+
#include "IStructureDetailsView.h"
9+
810
typedef struct
911
{
1012
PyObject_HEAD
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#pragma once
22

3-
#include "UnrealEnginePython.h"
4-
5-
63
#include "UEPySDropTarget.h"
74

5+
#if WITH_EDITOR
6+
87
#include "Editor/EditorWidgets/Public/SAssetDropTarget.h"
98

109
extern PyTypeObject ue_PySAssetDropTargetType;
@@ -15,3 +14,4 @@ typedef struct {
1514
} ue_PySAssetDropTarget;
1615

1716
void ue_python_init_sasset_drop_target(PyObject *);
17+
#endif
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#pragma once
22

3-
#include "UnrealEnginePython.h"
4-
5-
63
#include "UEPySCompoundWidget.h"
74

5+
#if WITH_EDITOR
6+
87
#include "Editor/EditorWidgets/Public/SDropTarget.h"
98

109
extern PyTypeObject ue_PySDropTargetType;
@@ -15,3 +14,4 @@ typedef struct {
1514
} ue_PySDropTarget;
1615

1716
void ue_python_init_sdrop_target(PyObject *);
17+
#endif

‎Source/UnrealEnginePython/Private/Slate/UEPySEditorViewport.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "UEPySCompoundWidget.h"
44

5+
#if WITH_EDITOR
6+
57
#include "Editor/UnrealEd/Public/SEditorViewport.h"
68

79
extern PyTypeObject ue_PySEditorViewportType;
@@ -13,3 +15,4 @@ typedef struct
1315
} ue_PySEditorViewport;
1416

1517
void ue_python_init_seditor_viewport(PyObject *);
18+
#endif

‎Source/UnrealEnginePython/Private/Slate/UEPySLevelViewport.h‎

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

33
#include "UEPySEditorViewport.h"
44

5+
#if WITH_EDITOR
6+
57
#include "Editor/LevelEditor/Public/SLevelViewport.h"
68
#include "Editor/LevelEditor/Private/SLevelEditor.h"
79
#include "Editor/UnrealEd/Public/EditorViewportClient.h"
@@ -15,4 +17,5 @@ typedef struct
1517
/* Type-specific fields go here. */
1618
} ue_PySLevelViewport;
1719

18-
void ue_python_init_slevel_viewport(PyObject *);
20+
void ue_python_init_slevel_viewport(PyObject *);
21+
#endif
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#pragma once
22

3-
#include "UnrealEnginePython.h"
4-
5-
63
#include "UEPySCompoundWidget.h"
74

5+
#if WITH_EDITOR
6+
87
#include "Editor/PropertyEditor/Public/PropertyCustomizationHelpers.h"
98

109
extern PyTypeObject ue_PySObjectPropertyEntryBoxType;
1110

12-
typedef struct {
11+
typedef struct
12+
{
1313
ue_PySCompoundWidget s_compound_widget;
1414
/* Type-specific fields go here. */
1515
} ue_PySObjectPropertyEntryBox;
1616

1717
void ue_python_init_sobject_property_entry_box(PyObject *);
18+
#endif

‎Source/UnrealEnginePython/Private/Slate/UEPySPythonEditorViewport.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "UEPySEditorViewport.h"
44

5+
#if WITH_EDITOR
6+
57
#include "Editor/UnrealEd/Public/SEditorViewport.h"
68
#include "Editor/UnrealEd/Public/EditorViewportClient.h"
79
#include "Runtime/Engine/Public/PreviewScene.h"
@@ -65,3 +67,5 @@ class SPythonEditorViewport : public SEditorViewport, public ICommonEditorViewpo
6567

6668
bool bSimulate;
6769
};
70+
71+
#endif

‎Source/UnrealEnginePython/Private/UEPyModule.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,10 @@ static PyMethodDef ue_PyUObject_methods[] = {
930930
#pragma warning(suppress: 4191)
931931
{ "skeletal_mesh_build_lod", (PyCFunction)py_ue_skeletal_mesh_build_lod, METH_VARARGS | METH_KEYWORDS, "" },
932932
#endif
933+
#if WITH_EDITOR
933934
{ "skeletal_mesh_register_morph_target", (PyCFunction)py_ue_skeletal_mesh_register_morph_target, METH_VARARGS, "" },
934935

935-
#if WITH_EDITOR
936+
936937
{ "skeletal_mesh_to_import_vertex_map", (PyCFunction)py_ue_skeletal_mesh_to_import_vertex_map, METH_VARARGS, "" },
937938

938939
{ "morph_target_populate_deltas", (PyCFunction)py_ue_morph_target_populate_deltas, METH_VARARGS, "" },

‎Source/UnrealEnginePython/Private/UObject/UEPyObject.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "PythonDelegate.h"
44
#include "PythonFunction.h"
5+
#include "Components/ActorComponent.h"
6+
#include "Engine/UserDefinedEnum.h"
57

68
#if WITH_EDITOR
79
#include "Runtime/AssetRegistry/Public/AssetRegistryModule.h"

0 commit comments

Comments
 (0)