From cfa48583ae1dd32a8d1575447c659c9786b0f406 Mon Sep 17 00:00:00 2001 From: Jacques Guignot Date: Sun, 26 Oct 2003 16:54:33 +0000 Subject: added a new function : getCurve(string) allowing access to an ipo curve from its name. --- source/blender/python/api2_2x/Ipo.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/python/api2_2x/Ipo.h') diff --git a/source/blender/python/api2_2x/Ipo.h b/source/blender/python/api2_2x/Ipo.h index 28e45e84ffb..c71a38dca85 100644 --- a/source/blender/python/api2_2x/Ipo.h +++ b/source/blender/python/api2_2x/Ipo.h @@ -93,6 +93,7 @@ static PyObject *Ipo_setBlocktype(C_Ipo *self, PyObject *args); static PyObject *Ipo_getRctf(C_Ipo *self); static PyObject *Ipo_setRctf(C_Ipo *self, PyObject *args); +static PyObject *Ipo_getCurve(C_Ipo *self, PyObject *args); static PyObject *Ipo_getCurves(C_Ipo *self); static PyObject *Ipo_addCurve(C_Ipo *self, PyObject *args); static PyObject *Ipo_getNcurves(C_Ipo *self); @@ -143,6 +144,8 @@ static PyMethodDef C_Ipo_methods[] = { "() - Return curval"}, {"getCurves", (PyCFunction)Ipo_getCurves, METH_NOARGS, "() - Return curval"}, + {"getCurve", (PyCFunction)Ipo_getCurve, METH_VARARGS, + "() - Return curval"}, {0} }; -- cgit v1.2.3