[Bf-blender-cvs] [4d9ddb4a774] master: Cleanup: clang format

Jacques Lucke noreply at git.blender.org
Thu Apr 21 09:37:26 CEST 2022


Commit: 4d9ddb4a774dc214d99c44457abb7a14c9686c27
Author: Jacques Lucke
Date:   Thu Apr 21 09:37:20 2022 +0200
Branches: master
https://developer.blender.org/rB4d9ddb4a774dc214d99c44457abb7a14c9686c27

Cleanup: clang format

===================================================================

M	source/blender/editors/mesh/mesh_data.c
M	source/blender/editors/sculpt_paint/paint_intern.h
M	source/blender/editors/sculpt_paint/sculpt_ops.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list