Skip to content

Commit 5dcd225

Browse files
author
Roberto De Ioris
committed
fixed 4.15 build
1 parent 450d9bb commit 5dcd225

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎Source/UnrealEnginePython/Private/Blueprint/UEPyEdGraph.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,9 @@ PyObject *py_ue_graph_add_node_dynamic_cast(ue_PyUObject * self, PyObject * args
408408

409409
UK2Node_DynamicCast *node = NewObject<UK2Node_DynamicCast>(graph);
410410
node->TargetType = u_class;
411+
#if ENGINE_MINOR_VERSION > 15
411412
node->SetPurity(false);
413+
#endif
412414
node->AllocateDefaultPins();
413415

414416
node->CreateNewGuid();

‎Source/UnrealEnginePython/Private/UEPyModule.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,12 +2430,12 @@ bool ue_py_convert_pyobject(PyObject *py_obj, UProperty *prop, uint8 *buffer, in
24302430
casted_prop_weak_object->SetPropertyValue_InContainer(buffer, FWeakObjectPtr(ue_obj->ue_object), index);
24312431
return true;
24322432
}
2433-
else if (auto casted_prop = Cast<UObjectPropertyBase>(prop))
2433+
else if (auto casted_prop_base = Cast<UObjectPropertyBase>(prop))
24342434
{
24352435
// ensure the object type is correct, otherwise crash could happen (soon or later)
2436-
if (!ue_obj->ue_object->IsA(casted_prop->PropertyClass))
2436+
if (!ue_obj->ue_object->IsA(casted_prop_base->PropertyClass))
24372437
return false;
2438-
casted_prop->SetObjectPropertyValue_InContainer(buffer, ue_obj->ue_object, index);
2438+
casted_prop_base->SetObjectPropertyValue_InContainer(buffer, ue_obj->ue_object, index);
24392439
return true;
24402440
}
24412441

‎Source/UnrealEnginePython/Private/Wrappers/UEPyFSlowTask.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#pragma once
22
#include "UnrealEnginePython.h"
3+
#include "Misc/SlowTask.h"
34

45
#if WITH_EDITOR
56

6-
struct ue_PyFSlowTask {
7+
typedef struct {
78
PyObject_HEAD
89
/* Type-specific fields go here. */
910

1011
FSlowTask slowtask;
11-
};
12+
} ue_PyFSlowTask;
1213

1314
void ue_python_init_fslowtask(PyObject *);
1415

0 commit comments

Comments
 (0)