diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-02-23 15:05:28 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-02-23 15:05:28 +0300 |
commit | 012f0a336c84b22c3e20716e4820f3342afef5d3 (patch) | |
tree | 00170e02918c2ae92c1c9a3b6e6145c01f954a15 /source/blender/python/api2_2x/Window.c | |
parent | 206021113da61f352d96805af7e82e9d41dd70b9 (diff) |
=== PyNodes ===
* Make PyNodes work with threaded renderer. This patch is by Willian. He has worked hard on getting this sorted out - now you should be able to render with PyNodes AND multiple threads.
Diffstat (limited to 'source/blender/python/api2_2x/Window.c')
-rw-r--r-- | source/blender/python/api2_2x/Window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Window.c b/source/blender/python/api2_2x/Window.c index 73edcb2df9c..7d346ed9cd9 100644 --- a/source/blender/python/api2_2x/Window.c +++ b/source/blender/python/api2_2x/Window.c @@ -1,5 +1,5 @@ /* - * $Id: Window.c 12813 2007-12-07 09:51:02Z campbellbarton $ + * $Id$ * * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** * @@ -512,6 +512,8 @@ static void getSelectedFile( char *name ) pycallback = script->py_browsercallback; if (pycallback) { + PyGILState_STATE gilstate = PyGILState_Ensure(); + result = PyObject_CallFunction( pycallback, "s", name ); if (!result) { @@ -525,6 +527,8 @@ static void getSelectedFile( char *name ) /* else another call to selector was made inside pycallback */ Py_DECREF(pycallback); + + PyGILState_Release(gilstate); } return; |