* blender doesn't need the -w anymore to start in a window
authorCampbell Barton <ideasman42@gmail.com>
Sat, 28 Feb 2009 09:25:42 +0000 (09:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 28 Feb 2009 09:25:42 +0000 (09:25 +0000)
* NULL can be used instead of () args for calling python functions from C.

release/freedesktop/blender.desktop
source/blender/python/api2_2x/Draw.c

index 3d14cc4aca08baff181e7ae0986a9cf6b0529b8a..39e0e3afe8e94e8120154a0d5596d6169a525e75 100644 (file)
@@ -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
index c238fe5601c060d76fd30b2864fc20db62fbcab3..2af2261808b34409177a56368e8e3def32261e80 100644 (file)
@@ -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 );