* blender doesn't need the -w anymore to start in a window

* NULL can be used instead of () args for calling python functions from C.
This commit is contained in:
Campbell Barton 2009-02-28 09:25:42 +00:00
parent 8d3dcfb104
commit 541d49bc2c
2 changed files with 3 additions and 3 deletions

@ -2,7 +2,7 @@
Encoding=UTF-8
Name=Blender
Comment=3D modeling, animation, rendering and post-production
Exec=blender -w
Exec=blender
Icon=blender.png
Terminal=false
Type=Application

@ -659,7 +659,7 @@ static void exec_callback( SpaceScript * sc, PyObject * callback,
}
Py_XDECREF( result );
Py_DECREF( args );
Py_XDECREF( args );
}
/* BPY_spacescript_do_pywin_draw, the static spacescript_do_pywin_buttons and
@ -688,7 +688,7 @@ void BPY_spacescript_do_pywin_draw( SpaceScript * sc )
BPy_Set_DrawButtonsList(sc->but_refs);
glPushAttrib( GL_ALL_ATTRIB_BITS );
exec_callback( sc, script->py_draw, Py_BuildValue( "()" ) );
exec_callback( sc, script->py_draw, NULL );
glPopAttrib( );
} else {
glClearColor( 0.4375, 0.4375, 0.4375, 0.0 );