Need to update the RNA pointers before running scripts

This commit is contained in:
2009-04-16 01:42:53 +00:00
parent a7916f4a3d
commit 88d394d47d

View File

@@ -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) {