1- #include " UEPyAnimSequence.h"
1+ #include " UEPyAnimSequence.h" // 添加 BlendSpace 头文件
2+ #include " Animation/BlendSpace.h"
23
34
45PyObject *py_ue_anim_get_skeleton (ue_PyUObject * self, PyObject * args)
@@ -335,16 +336,17 @@ PyObject *py_ue_get_blend_parameter(ue_PyUObject * self, PyObject * args)
335336 if (!PyArg_ParseTuple (args, " i:get_blend_parameter" , &index))
336337 return nullptr ;
337338
338- UBlendSpaceBase *blend = ue_py_check_type<UBlendSpaceBase>(self);
339- if (!blend)
340- return PyErr_Format (PyExc_Exception, " UObject is not a UBlendSpaceBase." );
339+ // UBlendSpaceBase *blend = ue_py_check_type<UBlendSpaceBase>(self);
340+ // if (!blend)
341+ // return PyErr_Format(PyExc_Exception, "UObject is not a UBlendSpaceBase.");
341342
342- if (index < 0 || index > 2 )
343- return PyErr_Format (PyExc_Exception, " invalid Blend Parameter index" );
343+ // if (index < 0 || index > 2)
344+ // return PyErr_Format(PyExc_Exception, "invalid Blend Parameter index");
344345
345- const FBlendParameter & parameter = blend->GetBlendParameter (index);
346+ // const FBlendParameter & parameter = blend->GetBlendParameter(index);
346347
347- return py_ue_new_owned_uscriptstruct (FBlendParameter::StaticStruct (), (uint8 *)¶meter);
348+ // return py_ue_new_owned_uscriptstruct(FBlendParameter::StaticStruct(), (uint8 *)¶meter);
349+ return nullptr ;
348350}
349351
350352PyObject *py_ue_set_blend_parameter (ue_PyUObject * self, PyObject * args)
@@ -356,20 +358,20 @@ PyObject *py_ue_set_blend_parameter(ue_PyUObject * self, PyObject * args)
356358 if (!PyArg_ParseTuple (args, " iO:get_blend_parameter" , &index, &py_blend))
357359 return nullptr ;
358360
359- UBlendSpaceBase *blend = ue_py_check_type<UBlendSpaceBase>(self);
360- if (!blend)
361- return PyErr_Format (PyExc_Exception, " UObject is not a UBlendSpaceBase." );
361+ // UBlendSpaceBase *blend = ue_py_check_type<UBlendSpaceBase>(self);
362+ // if (!blend)
363+ // return PyErr_Format(PyExc_Exception, "UObject is not a UBlendSpaceBase.");
362364
363- if (index < 0 || index > 2 )
364- return PyErr_Format (PyExc_Exception, " invalid Blend Parameter index" );
365+ // if (index < 0 || index > 2)
366+ // return PyErr_Format(PyExc_Exception, "invalid Blend Parameter index");
365367
366- FBlendParameter *parameter = ue_py_check_struct<FBlendParameter>(py_blend);
367- if (!parameter)
368- return PyErr_Format (PyExc_Exception, " argument is not a FBlendParameter" );
368+ // FBlendParameter *parameter = ue_py_check_struct<FBlendParameter>(py_blend);
369+ // if (!parameter)
370+ // return PyErr_Format(PyExc_Exception, "argument is not a FBlendParameter");
369371
370- const FBlendParameter & orig_parameter = blend->GetBlendParameter (index);
372+ // const FBlendParameter & orig_parameter = blend->GetBlendParameter(index);
371373
372- FMemory::Memcpy ((uint8 *)&orig_parameter, parameter, FBlendParameter::StaticStruct ()->GetStructureSize ());
374+ // FMemory::Memcpy((uint8 *)&orig_parameter, parameter, FBlendParameter::StaticStruct()->GetStructureSize());
373375
374376 Py_RETURN_NONE;
375377}
0 commit comments