Skip to content

Commit f8bd3ed

Browse files
committed
added update_compressed_track_map_from_raw
1 parent 62517fb commit f8bd3ed

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ static PyMethodDef ue_PyUObject_methods[] = {
644644
{ "get_raw_animation_data", (PyCFunction)py_ue_anim_sequence_get_raw_animation_data, METH_VARARGS, "" },
645645
{ "get_raw_animation_track", (PyCFunction)py_ue_anim_sequence_get_raw_animation_track, METH_VARARGS, "" },
646646
{ "add_new_raw_track", (PyCFunction)py_ue_anim_sequence_add_new_raw_track, METH_VARARGS, "" },
647+
{ "update_compressed_track_map_from_raw", (PyCFunction)py_ue_anim_sequence_update_compressed_track_map_from_raw, METH_VARARGS, "" },
647648
#endif
648649
{ "add_anim_composite_section", (PyCFunction)py_ue_add_anim_composite_section, METH_VARARGS, "" },
649650
#endif

Source/UnrealEnginePython/Private/UObject/UEPyAnimSequence.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ PyObject *py_ue_anim_get_skeleton(ue_PyUObject * self, PyObject * args)
2121

2222
#if WITH_EDITOR
2323
#if ENGINE_MINOR_VERSION > 13
24+
PyObject *py_ue_anim_sequence_update_compressed_track_map_from_raw(ue_PyUObject * self, PyObject * args)
25+
{
26+
ue_py_check(self);
27+
28+
UAnimSequence *anim_seq = ue_py_check_type<UAnimSequence>(self);
29+
if (!anim_seq)
30+
return PyErr_Format(PyExc_Exception, "UObject is not a UAnimSequence.");
31+
32+
anim_seq->UpdateCompressedTrackMapFromRaw();
33+
34+
Py_RETURN_NONE;
35+
}
36+
37+
2438
PyObject *py_ue_anim_sequence_get_raw_animation_data(ue_PyUObject * self, PyObject * args)
2539
{
2640
ue_py_check(self);

Source/UnrealEnginePython/Private/UObject/UEPyAnimSequence.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ PyObject *py_ue_anim_sequence_get_raw_animation_data(ue_PyUObject *, PyObject *)
1414
PyObject *py_ue_anim_sequence_get_raw_animation_track(ue_PyUObject *, PyObject *);
1515
PyObject *py_ue_anim_sequence_add_new_raw_track(ue_PyUObject *, PyObject *);
1616
PyObject *py_ue_add_anim_composite_section(ue_PyUObject *, PyObject *);
17+
PyObject *py_ue_anim_sequence_update_compressed_track_map_from_raw(ue_PyUObject *, PyObject *);
1718
#endif
1819
PyObject *py_ue_anim_set_skeleton(ue_PyUObject *, PyObject *);
1920

0 commit comments

Comments
 (0)