Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2018-10-09 18:06:42 +0300
committermano-wii <germano.costa@ig.com.br>2018-10-09 18:07:06 +0300
commit8fc8131bc9ca06c5d527c910141f85e7307b1017 (patch)
tree33c6c28987c8764cf1f203e690da9208162bac6a /source/blender/python/gpu/gpu_py_api.c
parent90e360c39fbe9ea0f9d0a441001d0dccfb158d04 (diff)
GPU Python: Use string literals in `shader.from_builtin` and `shader.code_from_builtin`.
Also, the gpu.shader.builtin submodule becomes obsolete, so it has been removed.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_api.c')
-rw-r--r--source/blender/python/gpu/gpu_py_api.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/python/gpu/gpu_py_api.c b/source/blender/python/gpu/gpu_py_api.c
index effc739ab43..b75e63dbecc 100644
--- a/source/blender/python/gpu/gpu_py_api.c
+++ b/source/blender/python/gpu/gpu_py_api.c
@@ -63,7 +63,6 @@ static struct PyModuleDef GPU_module_def = {
PyObject *BPyInit_gpu(void)
{
PyObject *sys_modules = PyImport_GetModuleDict();
- PyObject *subsubmodule;
PyObject *submodule;
PyObject *mod;
@@ -81,8 +80,5 @@ PyObject *BPyInit_gpu(void)
PyModule_AddObject(mod, "shader", (submodule = BPyInit_gpu_shader()));
PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule);
- PyModule_AddObject(submodule, "builtin", (subsubmodule = BPyInit_gpu_shader_builtin()));
- PyDict_SetItem(sys_modules, PyModule_GetNameObject(subsubmodule), subsubmodule);
-
return mod;
}