diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-11-28 08:03:26 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-11-28 08:03:26 +0300 |
commit | b2e32f5bd135eaf862be7159794f868b4ac2ce4a (patch) | |
tree | 2b7ecd52b0b019abf22859b342dbf5d08d940c6f /source/blender/python/api2_2x/Ipocurve.c | |
parent | 1745a077ad78752cb40afb06b70111d668f843d2 (diff) |
-- Bugfix #3458: keyblock.getData() was getting vertex data from keys
incorrectly, including wrapping curve data as BezTriples. Needed to
make a change to beztriple module so we could more easily create a
"thick" BezTriple object similar to Blender.BezTriple.New().
The change to BezTriple.h pointed out some dead code in the Ipocurve
module that could be removed.
Diffstat (limited to 'source/blender/python/api2_2x/Ipocurve.c')
-rw-r--r-- | source/blender/python/api2_2x/Ipocurve.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c index c89b3303188..6167223b1bd 100644 --- a/source/blender/python/api2_2x/Ipocurve.c +++ b/source/blender/python/api2_2x/Ipocurve.c @@ -83,7 +83,6 @@ static PyObject *IpoCurve_setExtrapolation( C_IpoCurve * self, PyObject * args ); static PyObject *IpoCurve_getExtrapolation( C_IpoCurve * self ); static PyObject *IpoCurve_getPoints( C_IpoCurve * self ); -static int IpoCurve_setPoints( C_IpoCurve * self, PyObject * value ); static PyObject *IpoCurve_evaluate( C_IpoCurve * self, PyObject * args ); static PyObject *IpoCurve_getDriver( C_IpoCurve * self ); @@ -565,20 +564,6 @@ static PyObject *IpoCurve_getPoints( C_IpoCurve * self ) return list; } - -static int IpoCurve_setPoints( C_IpoCurve * self, PyObject * value ) -{ - struct BezTriple *bezt; - PyObject *l = PyList_New( 0 ); - int i; - for( i = 0; i < self->ipocurve->totvert; i++ ) { - bezt = self->ipocurve->bezt + i; - PyList_Append( l, BezTriple_CreatePyObject( bezt ) ); - } - return 0; -} - - /*****************************************************************************/ /* Function: IpoCurveRepr */ /* Description: This is a callback function for the C_IpoCurve type. It */ @@ -587,7 +572,7 @@ static int IpoCurve_setPoints( C_IpoCurve * self, PyObject * value ) static PyObject *IpoCurveRepr( C_IpoCurve * self ) { char s[100]; - sprintf( s, "[IpoCurve \"%s\"]\n", getIpoCurveName( self->ipocurve ) ); + sprintf( s, "[IpoCurve \"%s\"]", getIpoCurveName( self->ipocurve ) ); return PyString_FromString( s ); } |