Skip to content

Commit 36b130e

Browse files
author
Roberto De Ioris
committed
fixed support for 4.15
1 parent 2b1e8f4 commit 36b130e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/UnrealEnginePython/Private/UObject/UEPySkeletal.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,10 @@ PyObject *py_ue_skeletal_mesh_register_morph_target(ue_PyUObject *self, PyObject
950950
if (!morph)
951951
return PyErr_Format(PyExc_Exception, "argument is not a MorphTarget");
952952

953+
#if ENGINE_MINOR_VERSION > 15
953954
if (!morph->HasValidData())
954955
return PyErr_Format(PyExc_Exception, "the MorphTarget has no valid data");
956+
#endif
955957

956958
#if WITH_EDITOR
957959
mesh->PreEditChange(nullptr);
@@ -1007,12 +1009,16 @@ PyObject *py_ue_morph_target_populate_deltas(ue_PyUObject *self, PyObject * args
10071009

10081010
morph->PopulateDeltas(deltas, lod_index);
10091011

1012+
#if ENGINE_MINOR_VERSION > 15
10101013
if (morph->HasValidData())
10111014
{
10121015
Py_RETURN_TRUE;
10131016
}
10141017

10151018
Py_RETURN_FALSE;
1019+
#else
1020+
Py_RETURN_TRUE;
1021+
#endif
10161022
}
10171023

10181024
PyObject *py_ue_morph_target_get_deltas(ue_PyUObject *self, PyObject * args)

0 commit comments

Comments
 (0)