From 792a481bee4352478f624927680e7aa0eaeb2267 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 7 Apr 2022 14:34:51 +1000 Subject: Cleanup: clang-format --- source/blender/editors/io/io_usd.c | 3 ++- source/blender/editors/mesh/editmesh_tools.c | 6 ++++-- source/blender/editors/sculpt_paint/sculpt_paint_color.c | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/io/io_usd.c b/source/blender/editors/io/io_usd.c index 51181f7caaa..bff1bdd0ed8 100644 --- a/source/blender/editors/io/io_usd.c +++ b/source/blender/editors/io/io_usd.c @@ -524,7 +524,8 @@ void WM_OT_usd_import(struct wmOperatorType *ot) RNA_def_boolean(ot->srna, "read_mesh_uvs", true, "UV Coordinates", "Read mesh UV coordinates"); - RNA_def_boolean(ot->srna, "read_mesh_colors", false, "Color Attributes", "Read mesh color attributes"); + RNA_def_boolean( + ot->srna, "read_mesh_colors", false, "Color Attributes", "Read mesh color attributes"); RNA_def_string(ot->srna, "prim_path_mask", diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 5a0a2b7a09a..cafcc4ec578 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -3153,8 +3153,10 @@ static int edbm_reverse_colors_exec(bContext *C, wmOperator *op) BMOperator bmop; - int color_index = BKE_id_attribute_to_index(&me->id, layer, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL); - EDBM_op_init(em, &bmop, op, "reverse_colors faces=%hf color_index=%i", BM_ELEM_SELECT, color_index); + int color_index = BKE_id_attribute_to_index( + &me->id, layer, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL); + EDBM_op_init( + em, &bmop, op, "reverse_colors faces=%hf color_index=%i", BM_ELEM_SELECT, color_index); BMO_op_exec(em->bm, &bmop); diff --git a/source/blender/editors/sculpt_paint/sculpt_paint_color.c b/source/blender/editors/sculpt_paint/sculpt_paint_color.c index cc4392c6a8a..fe83fade055 100644 --- a/source/blender/editors/sculpt_paint/sculpt_paint_color.c +++ b/source/blender/editors/sculpt_paint/sculpt_paint_color.c @@ -158,7 +158,7 @@ static void do_paint_brush_task_cb_ex(void *__restrict userdata, float noise = 1.0f; const float density = ss->cache->paint_brush.density; if (density < 1.0f) { - const float hash_noise = (float) BLI_hash_int_01(ss->cache->density_seed * 1000 * vd.index); + const float hash_noise = (float)BLI_hash_int_01(ss->cache->density_seed * 1000 * vd.index); if (hash_noise > density) { noise = density * hash_noise; fade = fade * noise; @@ -251,7 +251,7 @@ void SCULPT_do_paint_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode if (SCULPT_stroke_is_first_brush_step_of_symmetry_pass(ss->cache)) { if (SCULPT_stroke_is_first_brush_step(ss->cache)) { - ss->cache->density_seed = (float) BLI_hash_int_01(ss->cache->location[0] * 1000); + ss->cache->density_seed = (float)BLI_hash_int_01(ss->cache->location[0] * 1000); } return; } -- cgit v1.2.3