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-04-16 05:42:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-04-16 05:42:53 +0400
commit88d394d47dc0d1933faa06b50068f761d79a97ba (patch)
treec3a5b013044b629f5826b2e2e88c95ccca6d5465 /source/blender/python/intern/bpy_interface.c
parenta7916f4a3d29c02119cf2fcdb74106384b74f9fd (diff)
Need to update the RNA pointers before running scripts
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r--source/blender/python/intern/bpy_interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index cfedb1f8350..ecf1cc828f3 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -162,6 +162,8 @@ int BPY_run_python_script( bContext *C, const char *fn, struct Text *text )
gilstate = PyGILState_Ensure();
+ BPY_update_modules(); /* can give really bad results if this isnt here */
+
py_dict = CreateGlobalDictionary(C);
if (text) {