[Bf-blender-cvs] [7e115953648] master: Cleanup: clang-format
Campbell Barton
noreply at git.blender.org
Thu Feb 18 16:21:18 CET 2021
Commit: 7e1159536483a8206614a667b99c52f8a3ec3c74
Author: Campbell Barton
Date: Thu Feb 18 14:13:29 2021 +1100
Branches: master
https://developer.blender.org/rB7e1159536483a8206614a667b99c52f8a3ec3c74
Cleanup: clang-format
===================================================================
M intern/cycles/render/attribute.h
M source/blender/python/gpu/gpu_py_vertex_buffer.c
===================================================================
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<Attribute> 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);
More information about the Bf-blender-cvs
mailing list