Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Guignot <guignot@wanadoo.fr>2003-10-26 19:54:33 +0300
committerJacques Guignot <guignot@wanadoo.fr>2003-10-26 19:54:33 +0300
commitcfa48583ae1dd32a8d1575447c659c9786b0f406 (patch)
tree9f649ae933256365f4c2da42ce0ee3634a9edbb1 /source/blender/python/api2_2x/Ipo.h
parent6b1b9c1890633fb45c7e1f826d2fb2cb491f68aa (diff)
added a new function : getCurve(string) allowing access to an ipo curve from its name.
Diffstat (limited to 'source/blender/python/api2_2x/Ipo.h')
-rw-r--r--source/blender/python/api2_2x/Ipo.h3
1 files changed, 3 insertions, 0 deletions
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}
};