diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 10:06:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 10:06:07 +0300 |
commit | 44f719b63238503ef8f933f55383c6d4798995cc (patch) | |
tree | 897d2cccd47955d21eaf96010d8aeb0425b0173b /source/blender/python/bmesh | |
parent | c062d360caeb311865e1584baa4cf4d218b094d3 (diff) |
Cleanup: use PyImport_GetModuleDict
Replace direct access using PyThreadState_GET
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c index d5973baeadb..d7324eabb6c 100644 --- a/source/blender/python/bmesh/bmesh_py_api.c +++ b/source/blender/python/bmesh/bmesh_py_api.c @@ -196,7 +196,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(); |