Skip to content

Commit cab5988

Browse files
author
Roberto De Ioris
committed
fixed 4.12
1 parent 68e14dc commit cab5988

16 files changed

Lines changed: 50 additions & 3 deletions

‎Source/UnrealEnginePython/Private/ConsoleManager/UEPyIConsoleManager.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ static PyObject *py_ue_iconsole_manager_get_history(PyObject *cls, PyObject * ar
2727
return py_history;
2828
}
2929

30+
#if ENGINE_MINOR_VERSION > 12
3031
static PyObject *py_ue_iconsole_manager_get_objects(PyObject *cls, PyObject * args) {
3132
char *key = (char*)"";
3233
if (!PyArg_ParseTuple(args, "|s:get_objects", &key)) {
@@ -43,7 +44,9 @@ static PyObject *py_ue_iconsole_manager_get_objects(PyObject *cls, PyObject * ar
4344

4445
return py_names;
4546
}
47+
#endif
4648

49+
#if ENGINE_MINOR_VERSION > 12
4750
static PyObject *py_ue_iconsole_manager_get_objects_containing(PyObject *cls, PyObject * args) {
4851
char *key = (char*)"";
4952
if (!PyArg_ParseTuple(args, "|s:get_objects_containing", &key)) {
@@ -60,6 +63,7 @@ static PyObject *py_ue_iconsole_manager_get_objects_containing(PyObject *cls, Py
6063

6164
return py_names;
6265
}
66+
#endif
6367

6468
static PyObject *py_ue_iconsole_manager_get_help(PyObject *cls, PyObject * args) {
6569
char *key;
@@ -422,9 +426,11 @@ static PyObject *py_ue_iconsole_manager_register_variable_float(PyObject *cls, P
422426
static PyMethodDef ue_PyIConsoleManager_methods[] = {
423427
{ "get_history", (PyCFunction)py_ue_iconsole_manager_get_history, METH_VARARGS | METH_CLASS, "" },
424428
{ "add_history_entry", (PyCFunction)py_ue_iconsole_manager_add_history_entry, METH_VARARGS | METH_CLASS, "" },
429+
#if ENGINE_MINOR_VERSION > 12
425430
{ "get_objects", (PyCFunction)py_ue_iconsole_manager_get_objects, METH_VARARGS | METH_CLASS, "" },
426431
{ "get_objects_starting_with", (PyCFunction)py_ue_iconsole_manager_get_objects, METH_VARARGS | METH_CLASS, "" },
427432
{ "get_objects_containing", (PyCFunction)py_ue_iconsole_manager_get_objects_containing, METH_VARARGS | METH_CLASS, "" },
433+
#endif
428434
{ "get_help", (PyCFunction)py_ue_iconsole_manager_get_help, METH_VARARGS | METH_CLASS, "" },
429435
{ "set_help", (PyCFunction)py_ue_iconsole_manager_set_help, METH_VARARGS | METH_CLASS, "" },
430436
{ "get_int", (PyCFunction)py_ue_iconsole_manager_get_int, METH_VARARGS | METH_CLASS, "" },

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbx.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#if ENGINE_MINOR_VERSION > 12
23
#include "UnrealEnginePython.h"
34

45
#if WITH_EDITOR
@@ -14,3 +15,4 @@
1415
void ue_python_init_fbx(PyObject *);
1516

1617
#endif
18+
#endif

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbxIOSettings.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if ENGINE_MINOR_VERSION > 12
12
#include "UnrealEnginePythonPrivatePCH.h"
23

34
#if WITH_EDITOR
@@ -75,3 +76,4 @@ ue_PyFbxIOSettings *py_ue_is_fbx_io_settings(PyObject *obj) {
7576
}
7677

7778
#endif
79+
#endif

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbxImporter.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
#if ENGINE_MINOR_VERSION > 12
13
#include "UnrealEnginePythonPrivatePCH.h"
24

35
#if WITH_EDITOR
@@ -108,3 +110,4 @@ void ue_python_init_fbx_importer(PyObject *ue_module) {
108110
}
109111

110112
#endif
113+
#endif

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbxManager.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if ENGINE_MINOR_VERSION > 12
12
#include "UnrealEnginePythonPrivatePCH.h"
23

34
#if WITH_EDITOR
@@ -102,3 +103,4 @@ void ue_python_init_fbx(PyObject *module) {
102103

103104

104105
#endif
106+
#endif

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbxNode.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if ENGINE_MINOR_VERSION > 12
12
#include "UnrealEnginePythonPrivatePCH.h"
23

34
#if WITH_EDITOR
@@ -144,3 +145,4 @@ PyObject *py_ue_new_fbx_node(FbxNode *fbx_node) {
144145
}
145146

146147
#endif
148+
#endif

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbxObject.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if ENGINE_MINOR_VERSION > 12
12
#include "UnrealEnginePythonPrivatePCH.h"
23

34
#if WITH_EDITOR
@@ -219,3 +220,4 @@ ue_PyFbxObject *py_ue_is_fbx_object(PyObject *obj) {
219220
return (ue_PyFbxObject *)obj;
220221
}
221222
#endif
223+
#endif

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbxProperty.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if ENGINE_MINOR_VERSION > 12
12
#include "UnrealEnginePythonPrivatePCH.h"
23

34
#if WITH_EDITOR
@@ -102,3 +103,4 @@ ue_PyFbxProperty *py_ue_is_fbx_property(PyObject *obj) {
102103
return (ue_PyFbxProperty *)obj;
103104
}
104105
#endif
106+
#endif

‎Source/UnrealEnginePython/Private/Fbx/UEPyFbxScene.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if ENGINE_MINOR_VERSION > 12
12
#include "UnrealEnginePythonPrivatePCH.h"
23

34
#if WITH_EDITOR
@@ -103,3 +104,4 @@ ue_PyFbxScene *py_ue_is_fbx_scene(PyObject *obj) {
103104
}
104105

105106
#endif
107+
#endif

‎Source/UnrealEnginePython/Private/Slate/UEPySBox.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ static int ue_py_sbox_init(ue_PySBox *self, PyObject *args, PyObject *kwargs) {
7171
ue_py_slate_farguments_optional_enum("v_align", VAlign, EVerticalAlignment);
7272
ue_py_slate_farguments_struct("padding", Padding, FMargin);
7373
ue_py_slate_farguments_optional_foptional_size("height_override", HeightOverride);
74+
#if ENGINE_MINOR_VERSION > 12
7475
ue_py_slate_farguments_optional_foptional_size("max_aspect_ratio", MaxAspectRatio);
76+
#endif
7577
ue_py_slate_farguments_optional_foptional_size("max_desired_height", MaxDesiredHeight);
7678
ue_py_slate_farguments_optional_foptional_size("max_desired_width", MaxDesiredWidth);
7779
ue_py_slate_farguments_optional_foptional_size("min_desired_height", MinDesiredHeight);

0 commit comments

Comments
 (0)