forked from bartvdbraak/blender
A small alteration for C syntax, code before vars (MSVC complained about this).
This commit is contained in:
parent
50b34df348
commit
f913a53b0a
@ -1081,11 +1081,12 @@ static PyObject *Scene_play( BPy_Scene * self, PyObject * args )
|
|||||||
|
|
||||||
static PyObject *Scene_getTimeLine( BPy_Scene *self )
|
static PyObject *Scene_getTimeLine( BPy_Scene *self )
|
||||||
{
|
{
|
||||||
|
BPy_TimeLine *tm;
|
||||||
|
|
||||||
if( !(self->scene) )
|
if( !(self->scene) )
|
||||||
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
|
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
|
||||||
"Blender scene was deleted!" );
|
"Blender scene was deleted!" );
|
||||||
|
|
||||||
BPy_TimeLine *tm;
|
|
||||||
|
|
||||||
tm= (BPy_TimeLine *) PyObject_NEW (BPy_TimeLine, &TimeLine_Type);
|
tm= (BPy_TimeLine *) PyObject_NEW (BPy_TimeLine, &TimeLine_Type);
|
||||||
if (!tm)
|
if (!tm)
|
||||||
|
Loading…
Reference in New Issue
Block a user