@@ -82,6 +82,7 @@ static PyObject *py_ue_ftransform_transform_position_no_scale(ue_PyFTransform *s
8282 return py_ue_new_fvector (self->transform .TransformPositionNoScale (py_vec->vec ));
8383}
8484
85+ #if ENGINE_MINOR_VERSION > 15
8586static PyObject *py_ue_ftransform_transform_rotation (ue_PyFTransform *self, PyObject * args)
8687{
8788 PyObject *py_obj;
@@ -95,6 +96,7 @@ static PyObject *py_ue_ftransform_transform_rotation(ue_PyFTransform *self, PyOb
9596 return PyErr_Format (PyExc_Exception, " argument is not a FQuat" );
9697 return py_ue_new_fquat (self->transform .TransformRotation (py_quat->quat ));
9798}
99+ #endif
98100
99101static PyObject *py_ue_ftransform_get_matrix (ue_PyFTransform *self, PyObject * args)
100102{
@@ -118,7 +120,9 @@ static PyMethodDef ue_PyFTransform_methods[] = {
118120 { " transform_vector_no_scale" , (PyCFunction)py_ue_ftransform_transform_vector_no_scale, METH_VARARGS, " " },
119121 { " transform_position" , (PyCFunction)py_ue_ftransform_transform_position, METH_VARARGS, " " },
120122 { " transform_position_no_scale" , (PyCFunction)py_ue_ftransform_transform_position_no_scale, METH_VARARGS, " " },
123+ #if ENGINE_MINOR_VERSION > 15
121124 { " transform_rotation" , (PyCFunction)py_ue_ftransform_transform_rotation, METH_VARARGS, " " },
125+ #endif
122126 { NULL } /* Sentinel */
123127};
124128
0 commit comments