diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-11 19:53:20 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-11 22:13:02 +0300 |
commit | ed817d62bd087686112fe4428ad47bd237dbef46 (patch) | |
tree | 684d6c85f10b2d0a7e5f25d657978e7a37ca0d58 /source/blender/python/gpu/gpu_py_shader.c | |
parent | a608313860ff24f0ce45f9bcd7d8f0e25872ec96 (diff) |
Cleanup: Python GPU: Use consistent prefixes for local API
It was not following the own documentation at the top code that mentions
that for local API the prefix is "bpygpu_".
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c index b2603c75c3f..e5ffbd5e9e3 100644 --- a/source/blender/python/gpu/gpu_py_shader.c +++ b/source/blender/python/gpu/gpu_py_shader.c @@ -736,7 +736,7 @@ PyDoc_STRVAR(py_shader_module_doc, "3D_SMOOTH_COLOR\n" " :Attributes: vec3 pos, vec4 color\n" " :Uniforms: none\n"); -static PyModuleDef BPyGPU_shader_module_def = { +static PyModuleDef py_shader_module_def = { PyModuleDef_HEAD_INIT, .m_name = "gpu.shader", .m_doc = py_shader_module_doc, @@ -760,11 +760,11 @@ PyObject *BPyGPUShader_CreatePyObject(GPUShader *shader, bool is_builtin) return (PyObject *)self; } -PyObject *BPyInit_gpu_shader(void) +PyObject *bpygpu_shader_init(void) { PyObject *submodule; - submodule = PyModule_Create(&BPyGPU_shader_module_def); + submodule = PyModule_Create(&py_shader_module_def); return submodule; } |