Skip to content

Commit 7ec4ea7

Browse files
author
rdeioris
committed
fixed ue4.14 support
1 parent 17314c3 commit 7ec4ea7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/UnrealEnginePython/Private/UEPySequencer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ PyObject *py_ue_sequencer_add_actor(ue_PyUObject *self, PyObject * args) {
201201

202202
UObject& u_obj = *actors[0];
203203

204+
#if ENGINE_MINOR_VERSION < 15
205+
FGuid new_guid = seq->FindPossessableObjectId(u_obj);
206+
#else
204207
FGuid new_guid = seq->FindPossessableObjectId(u_obj, u_obj.GetWorld());
208+
#endif
205209
if (!new_guid.IsValid()) {
206210
return PyErr_Format(PyExc_Exception, "unable to find guid");
207211
}

0 commit comments

Comments
 (0)