diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2005-10-31 05:52:14 +0300 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2005-10-31 05:52:14 +0300 |
commit | 43ec1ee71af4e4d9644e21a4c46ce05829243af4 (patch) | |
tree | 08edf26175776557a910a0d9b162a66ffabf11ee /source/blender/python/api2_2x/Key.c | |
parent | e96495467936372261479ea7d3c48246bb30ae9b (diff) |
Removed key.getChannelIpo() since it is not proper implementation anymore.
Diffstat (limited to 'source/blender/python/api2_2x/Key.c')
-rw-r--r-- | source/blender/python/api2_2x/Key.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/python/api2_2x/Key.c b/source/blender/python/api2_2x/Key.c index 5ec11ebd235..c0d5cd19b15 100644 --- a/source/blender/python/api2_2x/Key.c +++ b/source/blender/python/api2_2x/Key.c @@ -61,14 +61,12 @@ static void KeyBlock_dealloc( PyObject * self ); static PyObject *Key_repr( BPy_Key * self ); static PyObject *Key_getBlocks( PyObject * self ); -static PyObject *Key_getChannelIpo(PyObject *self, PyObject *args); static PyObject *Key_getType( PyObject * self ); static PyObject *Key_getIpo( PyObject * self ); static PyObject *Key_getValue( PyObject * self ); static struct PyMethodDef Key_methods[] = { { "getBlocks", (PyCFunction) Key_getBlocks, METH_NOARGS, "Get key blocks" }, - { "getChannelIpo", (PyCFunction) Key_getChannelIpo, METH_VARARGS, "Get a Particular shape channel's IpoCurve key blocks" }, { "getIpo", (PyCFunction) Key_getIpo, METH_NOARGS, "Get key Ipo" }, { 0, 0, 0, 0 } }; @@ -630,19 +628,3 @@ PyObject *Key_Init( void ) return submodule; } -static PyObject *Key_getChannelIpo(PyObject *self, PyObject *args){ - short index; - IpoCurve *curve; - Key *key = (( BPy_KeyBlock * ) self)->key; - C_IpoCurve *output; - - if( !PyArg_ParseTuple( args, "i", &index ) ) { - return ( EXPP_ReturnPyObjError( PyExc_TypeError, - "expected one integer as an arguments" ) ); - } - - curve = verify_ipocurve(&key->id,ID_KE,NULL,NULL,index); - output = ( C_IpoCurve * ) PyObject_NEW( C_IpoCurve, &IpoCurve_Type ); - output->ipocurve = curve; - return ( ( PyObject * ) output ); -} |