own error, missing braces.

This commit is contained in:
Campbell Barton 2007-03-01 15:40:13 +00:00
parent 69eb4eefb5
commit 8e306366ef
1 changed files with 2 additions and 2 deletions

View File

@ -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 );