Skip to content

Commit 9541842

Browse files
author
Roberto De Ioris
committed
added alias get_component_by_type
1 parent 2f4e773 commit 9541842

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Source/UnrealEnginePython/Private/UEPyModule.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,6 @@ static PyObject *py_ue_call_function(ue_PyUObject * self, PyObject * args) {
741741
if (!function)
742742
return PyErr_Format(PyExc_Exception, "unable to find function");
743743

744-
UE_LOG(LogPython, Warning, TEXT("Func %d %d %d"), function->NumParms, function->ReturnValueOffset, function->ParmsSize);
745-
746744
uint8 *buffer = (uint8 *)FMemory_Alloca(function->ParmsSize);
747745
int argn = 1;
748746

@@ -756,6 +754,7 @@ static PyObject *py_ue_call_function(ue_PyUObject * self, PyObject * args) {
756754
if (!ue_py_convert_pyobject(py_arg, prop, buffer)) {
757755
return PyErr_Format(PyExc_TypeError, "unable to convert pyobject to property");
758756
}
757+
argn++;
759758
}
760759

761760
self->ue_object->ProcessEvent(function, buffer);
@@ -1158,6 +1157,7 @@ static PyMethodDef ue_PyUObject_methods[] = {
11581157
{ "add_actor_component", (PyCFunction)py_ue_add_actor_component, METH_VARARGS, "" },
11591158
{ "add_actor_root_component", (PyCFunction)py_ue_add_actor_root_component, METH_VARARGS, "" },
11601159
{ "get_actor_component_by_type", (PyCFunction)py_ue_get_actor_component_by_type, METH_VARARGS, "" },
1160+
{ "get_component_by_type", (PyCFunction)py_ue_get_actor_component_by_type, METH_VARARGS, "" },
11611161
{ "set_simulate_physics", (PyCFunction)py_ue_set_simulate_physics, METH_VARARGS, "" },
11621162
{ "get_world", (PyCFunction)py_ue_get_world, METH_VARARGS, "" },
11631163
{ "get_world_location_at_distance_along_spline", (PyCFunction)py_ue_get_world_location_at_distance_along_spline, METH_VARARGS, "" },

0 commit comments

Comments
 (0)