diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-17 16:16:41 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-17 16:38:59 +0300 |
commit | b7e1660d405d9d73f1aff54358a6d2d1461a75d0 (patch) | |
tree | daa73f48a05438d953ea4eb5873db52405244d4e /source/blender/python/gpu/gpu_py_api.c | |
parent | 1ea6394fc8446cb54ec011d0e210135b8b5a4d33 (diff) |
Cleanup: Use 'pygpu_' prefix in the cpython GPU module
`py_` prefix can be confused with the Python's own API's.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_api.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/gpu/gpu_py_api.c b/source/blender/python/gpu/gpu_py_api.c index eb2fd1f7304..dcc8484319e 100644 --- a/source/blender/python/gpu/gpu_py_api.c +++ b/source/blender/python/gpu/gpu_py_api.c @@ -105,13 +105,13 @@ success: /** \name GPU Module * \{ */ -PyDoc_STRVAR(GPU_doc, +PyDoc_STRVAR(pygpu_doc, "This module provides Python wrappers for the GPU implementation in Blender.\n" "Some higher level functions can be found in the `gpu_extras` module."); -static struct PyModuleDef GPU_module_def = { +static struct PyModuleDef pygpu_module_def = { PyModuleDef_HEAD_INIT, .m_name = "gpu", - .m_doc = GPU_doc, + .m_doc = pygpu_doc, }; PyObject *BPyInit_gpu(void) @@ -120,7 +120,7 @@ PyObject *BPyInit_gpu(void) PyObject *submodule; PyObject *mod; - mod = PyModule_Create(&GPU_module_def); + mod = PyModule_Create(&pygpu_module_def); PyModule_AddObject(mod, "types", (submodule = bpygpu_types_init())); PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); |