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:
Diffstat (limited to 'source/blender/python/gpu/gpu_py_types.c')
-rw-r--r--source/blender/python/gpu/gpu_py_types.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/python/gpu/gpu_py_types.c b/source/blender/python/gpu/gpu_py_types.c
index 5829cd8c088..fdd589d788e 100644
--- a/source/blender/python/gpu/gpu_py_types.c
+++ b/source/blender/python/gpu/gpu_py_types.c
@@ -43,6 +43,9 @@ PyObject *bpygpu_types_init(void)
submodule = PyModule_Create(&pygpu_types_module_def);
+ if (PyType_Ready(&BPyGPU_BufferType) < 0) {
+ return NULL;
+ }
if (PyType_Ready(&BPyGPUVertFormat_Type) < 0) {
return NULL;
}
@@ -61,13 +64,26 @@ PyObject *bpygpu_types_init(void)
if (PyType_Ready(&BPyGPUShader_Type) < 0) {
return NULL;
}
+ if (PyType_Ready(&BPyGPUTexture_Type) < 0) {
+ return NULL;
+ }
+ if (PyType_Ready(&BPyGPUFrameBuffer_Type) < 0) {
+ return NULL;
+ }
+ if (PyType_Ready(&BPyGPUUniformBuf_Type) < 0) {
+ return NULL;
+ }
+ PyModule_AddType(submodule, &BPyGPU_BufferType);
PyModule_AddType(submodule, &BPyGPUVertFormat_Type);
PyModule_AddType(submodule, &BPyGPUVertBuf_Type);
PyModule_AddType(submodule, &BPyGPUIndexBuf_Type);
PyModule_AddType(submodule, &BPyGPUBatch_Type);
PyModule_AddType(submodule, &BPyGPUOffScreen_Type);
PyModule_AddType(submodule, &BPyGPUShader_Type);
+ PyModule_AddType(submodule, &BPyGPUTexture_Type);
+ PyModule_AddType(submodule, &BPyGPUFrameBuffer_Type);
+ PyModule_AddType(submodule, &BPyGPUUniformBuf_Type);
return submodule;
}