Python API
---------- Fix C90 mixed declarations and code.
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user