diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-01 18:40:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-01 18:40:13 +0300 |
commit | 8e306366ef9be4f6c005a12bf1bdc12f9adbcbbb (patch) | |
tree | c89eb3dbfb50dc190d14862e643c789be3150551 | |
parent | 69eb4eefb5c9e34a53e6ce75cbac81968ef49931 (diff) |
own error, missing braces.
-rw-r--r-- | source/blender/python/api2_2x/Curve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c index b8be14886e2..2ad5b2b7b68 100644 --- a/source/blender/python/api2_2x/Curve.c +++ b/source/blender/python/api2_2x/Curve.c @@ -1550,12 +1550,12 @@ static PyObject *CurveGetAttr( BPy_Curve * self, char *name ) if( strcmp( name, "name" ) == 0 ) attr = PyString_FromString( self->curve->id.name + 2 ); - else if( strcmp( name, "lib" ) == 0 ) + else if( strcmp( name, "lib" ) == 0 ) { /* WARNING - Not standard, until we move to get/setattrs at the moment we cant return None at the end because it raises an error */ attr = EXPP_GetIdLib((ID *)self->curve); if (attr) return attr; - else if( strcmp( name, "pathlen" ) == 0 ) + } else if( strcmp( name, "pathlen" ) == 0 ) attr = PyInt_FromLong( self->curve->pathlen ); else if( strcmp( name, "totcol" ) == 0 ) attr = PyInt_FromLong( self->curve->totcol ); |