diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-29 22:12:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-29 23:14:28 +0300 |
commit | 25ec4b437fe927205a810470cdc23efd7282c85b (patch) | |
tree | 6d7ba2fe73703915b4b94d3f2dab03fb731e9544 /source/blender/python/gpu/gpu_py_types.c | |
parent | 18d06e8d21ed8c9a19df4205abcd7ed17eb9af00 (diff) |
Cleanup: style, use braces for the Python API
Diffstat (limited to 'source/blender/python/gpu/gpu_py_types.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_types.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/python/gpu/gpu_py_types.c b/source/blender/python/gpu/gpu_py_types.c index 7ed1832eb57..67bdc070168 100644 --- a/source/blender/python/gpu/gpu_py_types.c +++ b/source/blender/python/gpu/gpu_py_types.c @@ -45,18 +45,24 @@ PyObject *BPyInit_gpu_types(void) submodule = PyModule_Create(&BPyGPU_types_module_def); - if (PyType_Ready(&BPyGPUVertFormat_Type) < 0) + if (PyType_Ready(&BPyGPUVertFormat_Type) < 0) { return NULL; - if (PyType_Ready(&BPyGPUVertBuf_Type) < 0) + } + if (PyType_Ready(&BPyGPUVertBuf_Type) < 0) { return NULL; - if (PyType_Ready(&BPyGPUIndexBuf_Type) < 0) + } + if (PyType_Ready(&BPyGPUIndexBuf_Type) < 0) { return NULL; - if (PyType_Ready(&BPyGPUBatch_Type) < 0) + } + if (PyType_Ready(&BPyGPUBatch_Type) < 0) { return NULL; - if (PyType_Ready(&BPyGPUOffScreen_Type) < 0) + } + if (PyType_Ready(&BPyGPUOffScreen_Type) < 0) { return NULL; - if (PyType_Ready(&BPyGPUShader_Type) < 0) + } + if (PyType_Ready(&BPyGPUShader_Type) < 0) { return NULL; + } #define MODULE_TYPE_ADD(s, t) \ PyModule_AddObject(s, t.tp_name, (PyObject *)&t); Py_INCREF((PyObject *)&t) |