Merge branch 'master' into blender2.8
[blender.git] / source / blender / python / bmesh / bmesh_py_api.c
index d6189f7c1eb8f8a44c190918cb0167bbab8ccf75..7669f7eb1fda875c8f3a5f75ca8d1f9af9c71404 100644 (file)
@@ -191,7 +191,7 @@ PyObject *BPyInit_bmesh(void)
 {
        PyObject *mod;
        PyObject *submodule;
-       PyObject *sys_modules = PyThreadState_GET()->interp->modules;
+       PyObject *sys_modules = PyImport_GetModuleDict();
 
        BPy_BM_init_types();
        BPy_BM_init_types_select();