diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-04-16 05:42:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-04-16 05:42:53 +0400 |
commit | 88d394d47dc0d1933faa06b50068f761d79a97ba (patch) | |
tree | c3a5b013044b629f5826b2e2e88c95ccca6d5465 /source/blender/python | |
parent | a7916f4a3d29c02119cf2fcdb74106384b74f9fd (diff) |
Need to update the RNA pointers before running scripts
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
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) { |