From 41a7dd383cc77566655a60e35e74ec1276d04020 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 24 Jan 2019 09:27:14 +1100 Subject: Cleanup: style --- source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 3 ++- source/blender/editors/sculpt_paint/sculpt.c | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index a34b7eeb913..1cb9385c848 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -395,7 +395,8 @@ void DepsgraphRelationBuilder::add_particle_forcefield_relations( add_relation(eff_key, key, name); if (ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS) || - relation->pd->forcefield == PFIELD_GUIDE) { + relation->pd->forcefield == PFIELD_GUIDE) + { ComponentKey mod_key(&relation->ob->id, DEG_NODE_TYPE_GEOMETRY); add_relation(mod_key, key, name); } diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index b25b9f4fff6..dc607fe91fd 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2160,10 +2160,10 @@ static void bmesh_topology_rake( settings.use_threading = ((sd->flags & SCULPT_USE_OPENMP) && totnode > SCULPT_THREADED_LIMIT); BLI_task_parallel_range( - 0, totnode, - &data, - do_topology_rake_bmesh_task_cb_ex, - &settings); + 0, totnode, + &data, + do_topology_rake_bmesh_task_cb_ex, + &settings); } } @@ -4625,6 +4625,7 @@ static void sculpt_update_brush_delta(UnifiedPaintSettings *ups, Object *ob, Bru mul_mat3_m4_v3(imat, cache->grab_delta); break; default: + /* Use for 'Brush.topology_rake_factor'. */ sub_v3_v3v3(cache->grab_delta, grab_location, cache->old_grab_location); break; -- cgit v1.2.3