From 4d9ddb4a774dc214d99c44457abb7a14c9686c27 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 21 Apr 2022 09:37:20 +0200 Subject: Cleanup: clang format --- source/blender/editors/mesh/mesh_data.c | 3 ++- source/blender/editors/sculpt_paint/paint_intern.h | 4 +--- source/blender/editors/sculpt_paint/sculpt_ops.c | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c index 9b069aae7e3..d11f0b490c1 100644 --- a/source/blender/editors/mesh/mesh_data.c +++ b/source/blender/editors/mesh/mesh_data.c @@ -431,7 +431,8 @@ bool ED_mesh_color_ensure(struct Mesh *me, const char *name) CustomDataLayer *layer = BKE_id_attributes_active_color_get(&me->id); if (!layer) { - CustomData_add_layer_named(&me->ldata, CD_PROP_BYTE_COLOR, CD_DEFAULT, NULL, me->totloop, name); + CustomData_add_layer_named( + &me->ldata, CD_PROP_BYTE_COLOR, CD_DEFAULT, NULL, me->totloop, name); layer = me->ldata.layers + CustomData_get_layer_index(&me->ldata, CD_PROP_BYTE_COLOR); BKE_id_attributes_active_color_set(&me->id, layer); diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index 9cdd6a5edcc..187f793eefe 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -133,9 +133,7 @@ void PAINT_OT_weight_gradient(struct wmOperatorType *ot); void PAINT_OT_vertex_paint_toggle(struct wmOperatorType *ot); void PAINT_OT_vertex_paint(struct wmOperatorType *ot); -unsigned int vpaint_get_current_color(struct Scene *scene, - struct VPaint *vp, - bool secondary); +unsigned int vpaint_get_current_color(struct Scene *scene, struct VPaint *vp, bool secondary); /* paint_vertex_color_utils.c */ diff --git a/source/blender/editors/sculpt_paint/sculpt_ops.c b/source/blender/editors/sculpt_paint/sculpt_ops.c index 4755cf6e9ce..b5fb7ce3366 100644 --- a/source/blender/editors/sculpt_paint/sculpt_ops.c +++ b/source/blender/editors/sculpt_paint/sculpt_ops.c @@ -755,9 +755,7 @@ static void SCULPT_OT_loop_to_vertex_colors(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -static int sculpt_sample_color_invoke(bContext *C, - wmOperator *op, - const wmEvent *UNUSED(e)) +static int sculpt_sample_color_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(e)) { Sculpt *sd = CTX_data_tool_settings(C)->sculpt; Scene *scene = CTX_data_scene(C); -- cgit v1.2.3