From 7e1159536483a8206614a667b99c52f8a3ec3c74 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Feb 2021 14:13:29 +1100 Subject: [PATCH] Cleanup: clang-format --- intern/cycles/render/attribute.h | 2 +- source/blender/python/gpu/gpu_py_vertex_buffer.c | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/intern/cycles/render/attribute.h b/intern/cycles/render/attribute.h index c1be62addc0..18c9e5ab83a 100644 --- a/intern/cycles/render/attribute.h +++ b/intern/cycles/render/attribute.h @@ -179,7 +179,7 @@ class AttributeSet { Geometry *geometry; AttributePrimitive prim; list attributes; - bool modified = true; + bool modified = true; AttributeSet(Geometry *geometry, AttributePrimitive prim); AttributeSet(AttributeSet &&) = default; 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);