Skip to content

Commit db65f79

Browse files
author
Roberto De Ioris
committed
fixed py_ue_fbx_object_get_curve
1 parent 386b09e commit db65f79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/UnrealEnginePython/Private/Fbx/UEPyFbxObject.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ static PyObject *py_ue_fbx_object_get_curve(ue_PyFbxObject *self, PyObject *args
9595
FbxAnimCurveNode *fbx_anim_curve_node = FbxCast<FbxAnimCurveNode>(self->fbx_object);
9696
if (!fbx_anim_curve_node)
9797
return PyErr_Format(PyExc_Exception, "object is not a FbxAnimCurveNode");
98+
FbxAnimCurve *fbx_anim_curve = fbx_anim_curve_node->GetCurve(channel, index);
99+
if (!fbx_anim_curve)
100+
Py_RETURN_NONE;
98101
return py_ue_new_fbx_object(fbx_anim_curve_node->GetCurve(channel, index));
99102
}
100103

0 commit comments

Comments
 (0)