* 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:
parent
8d3dcfb104
commit
541d49bc2c
@ -2,7 +2,7 @@
|
|||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=Blender
|
Name=Blender
|
||||||
Comment=3D modeling, animation, rendering and post-production
|
Comment=3D modeling, animation, rendering and post-production
|
||||||
Exec=blender -w
|
Exec=blender
|
||||||
Icon=blender.png
|
Icon=blender.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
|
@ -659,7 +659,7 @@ static void exec_callback( SpaceScript * sc, PyObject * callback,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Py_XDECREF( result );
|
Py_XDECREF( result );
|
||||||
Py_DECREF( args );
|
Py_XDECREF( args );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* BPY_spacescript_do_pywin_draw, the static spacescript_do_pywin_buttons and
|
/* 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);
|
BPy_Set_DrawButtonsList(sc->but_refs);
|
||||||
|
|
||||||
glPushAttrib( GL_ALL_ATTRIB_BITS );
|
glPushAttrib( GL_ALL_ATTRIB_BITS );
|
||||||
exec_callback( sc, script->py_draw, Py_BuildValue( "()" ) );
|
exec_callback( sc, script->py_draw, NULL );
|
||||||
glPopAttrib( );
|
glPopAttrib( );
|
||||||
} else {
|
} else {
|
||||||
glClearColor( 0.4375, 0.4375, 0.4375, 0.0 );
|
glClearColor( 0.4375, 0.4375, 0.4375, 0.0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user