Skip to content

Commit 06009e8

Browse files
author
Roberto De Ioris
committed
fixed launch/build
1 parent 6c08d70 commit 06009e8

6 files changed

Lines changed: 15 additions & 2 deletions

File tree

Source/UnrealEnginePython/Private/UEPyAssetUserData.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "UnrealEnginePythonPrivatePCH.h"
22

3+
#if WITH_EDITOR
4+
35
PyObject *py_ue_asset_import_data(ue_PyUObject * self, PyObject * args) {
46

57
ue_py_check(self);
@@ -23,3 +25,4 @@ PyObject *py_ue_asset_import_data(ue_PyUObject * self, PyObject * args) {
2325
}
2426
return ret;
2527
}
28+
#endif

Source/UnrealEnginePython/Private/UEPyAssetUserData.h

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

55
#include "UnrealEnginePython.h"
66

7+
#if WITH_EDITOR
78
PyObject *py_ue_asset_import_data(ue_PyUObject *, PyObject *);
9+
#endif

Source/UnrealEnginePython/Private/UEPyFARFilter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "UnrealEnginePythonPrivatePCH.h"
22

3+
#if WITH_EDITOR
4+
35
static PyObject *py_ue_farfilter_append(ue_PyFARFilter *self, PyObject * args) {
46
PyObject *pyfilter = nullptr;
57
py_ue_sync_farfilter((PyObject *)self);
@@ -328,3 +330,5 @@ ue_PyFARFilter *py_ue_is_farfilter(PyObject *obj) {
328330
return nullptr;
329331
return (ue_PyFARFilter *)obj;
330332
}
333+
334+
#endif

Source/UnrealEnginePython/Private/UEPyFARFilter.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#pragma once
22
#include "UnrealEnginePython.h"
33

4+
#if WITH_EDITOR
5+
46
#include "AssetRegistryModule.h"
57

68
typedef struct {
@@ -21,3 +23,5 @@ ue_PyFARFilter *py_ue_is_farfilter(PyObject *);
2123
void ue_python_init_farfilter(PyObject *);
2224
void py_ue_sync_farfilter(PyObject *);
2325
void py_ue_clear_farfilter(ue_PyFARFilter *);
26+
27+
#endif

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,10 @@ static PyMethodDef ue_PyUObject_methods[] = {
276276
{ "package_get_filename", (PyCFunction)py_ue_package_get_filename, METH_VARARGS, "" },
277277
{ "package_is_dirty", (PyCFunction)py_ue_package_is_dirty, METH_VARARGS, "" },
278278

279+
#if WITH_EDITOR
279280
// AssetUserData
280281
{ "asset_import_data", (PyCFunction)py_ue_asset_import_data, METH_VARARGS, "" },
282+
#endif
281283

282284
// Input
283285

Source/UnrealEnginePython/Public/PyCommandlet.h

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

3-
#include "UnrealEd.h"
4-
#include "Core.h"
53
#include "Commandlets/Commandlet.h"
64
#include "PyCommandlet.generated.h"
75

0 commit comments

Comments
 (0)