Python API

----------
Fix C90 mixed declarations and code.
This commit is contained in:
Ken Hughes
2008-09-14 14:17:44 +00:00
parent 4245aaed86
commit 6977816ff3

View File

@@ -334,6 +334,7 @@ static int LibBlockSeq_setActive(BPy_LibBlockSeq *self, PyObject *value)
"Must be a text" );
} else {
SpaceText *st= NULL;
Text *data = ((BPy_Text *)value)->text;
if (curarea==NULL) {
return 0;
@@ -341,8 +342,6 @@ static int LibBlockSeq_setActive(BPy_LibBlockSeq *self, PyObject *value)
st= curarea->spacedata.first;
}
Text *data = ((BPy_Text *)value)->text;
if( !data )
return EXPP_ReturnIntError( PyExc_RuntimeError,
"This object isn't linked to a Blender Text Object" );