Merge branch 'master' into blender2.8
[blender.git] / source / blender / python / gpu / gpu_py_api.c
index fc1e7390ffe2b10d1d285b7abdb30d7808c7a8fe..04a27af09f1dec314bdc99c28e70483b22072f54 100644 (file)
@@ -61,7 +61,7 @@ static struct PyModuleDef GPU_module_def = {
 
 PyObject *BPyInit_gpu(void)
 {
-       PyObject *sys_modules = PyThreadState_GET()->interp->modules;
+       PyObject *sys_modules = PyImport_GetModuleDict();
        PyObject *submodule;
        PyObject *mod;