Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-02-28 12:25:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-28 12:25:42 +0300
commit541d49bc2c2ad9f26314df0fa4a6c96cfdf2852e (patch)
tree57de4346b1488d0ca185f3281a4d31865d6c6bc4
parent8d3dcfb104bcfc4fa9fdfecaa8e5c8fd9a900e98 (diff)
* 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.
-rw-r--r--release/freedesktop/blender.desktop2
-rw-r--r--source/blender/python/api2_2x/Draw.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/release/freedesktop/blender.desktop b/release/freedesktop/blender.desktop
index 3d14cc4aca0..39e0e3afe8e 100644
--- a/release/freedesktop/blender.desktop
+++ b/release/freedesktop/blender.desktop
@@ -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
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c
index c238fe5601c..2af2261808b 100644
--- a/source/blender/python/api2_2x/Draw.c
+++ b/source/blender/python/api2_2x/Draw.c
@@ -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 );