[Bf-blender-cvs] [ee6c8be1834] blender2.8: GPU Python: rename methods "shader_from_builtin" and "shader_code_from_builtin" to "from_builtin" and "code_from_builtin".

mano-wii noreply at git.blender.org
Thu Oct 4 18:51:36 CEST 2018


Commit: ee6c8be1834a64bd5ba20400908999750bf8cd8d
Author: mano-wii
Date:   Thu Oct 4 13:51:21 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBee6c8be1834a64bd5ba20400908999750bf8cd8d

GPU Python: rename methods "shader_from_builtin" and "shader_code_from_builtin" to "from_builtin" and "code_from_builtin".

===================================================================

M	source/blender/python/gpu/gpu_py_shader.c

===================================================================

diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c
index 135e9c31c3f..c8193e00f6a 100644
--- a/source/blender/python/gpu/gpu_py_shader.c
+++ b/source/blender/python/gpu/gpu_py_shader.c
@@ -765,10 +765,10 @@ static struct PyMethodDef bpygpu_shader_module_methods[] = {
 	{"unbind",
 	 (PyCFunction)bpygpu_shader_unbind,
 	 METH_NOARGS, bpygpu_shader_unbind_doc},
-	{"shader_from_builtin",
+	{"from_builtin",
 	 (PyCFunction)bpygpu_shader_from_builtin,
 	 METH_O, bpygpu_shader_from_builtin_doc},
-	{"shader_code_from_builtin",
+	{"code_from_builtin",
 	 (PyCFunction)bpygpu_shader_code_from_builtin,
 	 METH_O, bpygpu_shader_code_from_builtin_doc},
 	{NULL, NULL, 0, NULL}



More information about the Bf-blender-cvs mailing list