Merge branch 'master' into blender2.8
This commit is contained in:
@@ -538,7 +538,7 @@ static bool python_script_exec(
|
||||
if (py_dict) {
|
||||
#ifdef PYMODULE_CLEAR_WORKAROUND
|
||||
PyModuleObject *mmod = (PyModuleObject *)PyDict_GetItem(
|
||||
PyThreadState_GET()->interp->modules, bpy_intern_str___main__);
|
||||
PyImport_GetModuleDict(), bpy_intern_str___main__);
|
||||
PyObject *dict_back = mmod->md_dict;
|
||||
/* freeing the module will clear the namespace,
|
||||
* gives problems running classes defined in this namespace being used later. */
|
||||
|
||||
@@ -85,7 +85,7 @@ PyObject *GPU_initPython(void)
|
||||
{
|
||||
PyObject *module;
|
||||
PyObject *submodule;
|
||||
PyObject *sys_modules = PyThreadState_GET()->interp->modules;
|
||||
PyObject *sys_modules = PyImport_GetModuleDict();
|
||||
|
||||
module = PyInit_gpu();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user