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:
authorCampbell Barton <ideasman42@gmail.com>2021-02-18 06:13:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-18 18:19:53 +0300
commit7e1159536483a8206614a667b99c52f8a3ec3c74 (patch)
tree8cb3f972c474aca2336ca61ee8c8cdc1389d6e56 /source/blender/python/gpu
parentaa2da44b829794beacb1b75b2dcd63ae156b5865 (diff)
Cleanup: clang-format
Diffstat (limited to 'source/blender/python/gpu')
-rw-r--r--source/blender/python/gpu/gpu_py_vertex_buffer.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/python/gpu/gpu_py_vertex_buffer.c b/source/blender/python/gpu/gpu_py_vertex_buffer.c
index 160931393ed..dcea57e78dc 100644
--- a/source/blender/python/gpu/gpu_py_vertex_buffer.c
+++ b/source/blender/python/gpu/gpu_py_vertex_buffer.c
@@ -91,8 +91,8 @@ static void pygpu_fill_format_elem(void *data_dst_void, PyObject *py_src, const
/* No error checking, callers must run PyErr_Occurred */
static void pygpu_fill_format_sequence(void *data_dst_void,
- PyObject *py_seq_fast,
- const GPUVertAttr *attr)
+ PyObject *py_seq_fast,
+ const GPUVertAttr *attr)
{
const uint len = attr->comp_len;
PyObject **value_fast_items = PySequence_Fast_ITEMS(py_seq_fast);
@@ -117,9 +117,9 @@ static void pygpu_fill_format_sequence(void *data_dst_void,
#undef WARN_TYPE_LIMIT_POP
static bool pygpu_vertbuf_fill_impl(GPUVertBuf *vbo,
- uint data_id,
- PyObject *seq,
- const char *error_prefix)
+ uint data_id,
+ PyObject *seq,
+ const char *error_prefix)
{
const char *exc_str_size_mismatch = "Expected a %s of size %d, got %u";
@@ -213,7 +213,10 @@ static bool pygpu_vertbuf_fill_impl(GPUVertBuf *vbo,
return ok;
}
-static int pygpu_vertbuf_fill(GPUVertBuf *buf, int id, PyObject *py_seq_data, const char *error_prefix)
+static int pygpu_vertbuf_fill(GPUVertBuf *buf,
+ int id,
+ PyObject *py_seq_data,
+ const char *error_prefix)
{
if (id < 0 || id >= GPU_vertbuf_get_format(buf)->attr_len) {
PyErr_Format(PyExc_ValueError, "Format id %d out of range", id);