Skip to content

Commit 95857d1

Browse files
author
Roberto De Ioris
committed
ported userdefinedstruct api to 4.15
1 parent 0c60e9a commit 95857d1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454

5555
#include "Slate/UEPySlate.h"
5656

57+
#if ENGINE_MINOR_VERSION < 18
58+
#define USoftObjectProperty UAssetObjectProperty
59+
#define USoftClassProperty UAssetClassProperty
60+
typedef FAssetPtr FSoftObjectPtr;
61+
#endif
62+
5763
DEFINE_LOG_CATEGORY(LogPython);
5864

5965

@@ -943,8 +949,8 @@ void ue_pydelegates_cleanup(ue_PyUObject *self)
943949
UE_LOG(LogPython, Warning, TEXT("Removing UPythonDelegate %p from ue_PyUObject %p mapped to UObject %p"), py_delegate, self, self->ue_object);
944950
#endif
945951
py_delegate->RemoveFromRoot();
952+
}
946953
}
947-
}
948954
self->python_delegates_gc->clear();
949955
delete self->python_delegates_gc;
950956
self->python_delegates_gc = nullptr;
@@ -2111,7 +2117,7 @@ void unreal_engine_py_log_error()
21112117
}
21122118

21132119
PyErr_Clear();
2114-
}
2120+
}
21152121

21162122
// retrieve a UWorld from a generic UObject (if possible)
21172123
UWorld *ue_get_uworld(ue_PyUObject *py_obj)

0 commit comments

Comments
 (0)