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