Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Wed, 23 Jan 2019 22:27:14 +0000 (09:27 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 23 Jan 2019 22:27:14 +0000 (09:27 +1100)
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/editors/sculpt_paint/sculpt.c

index 2c95a9207ec7f001c1febab591a1f5589842bd40..321e61ac092146bad3db876b51113637bacc5cc8 100644 (file)
@@ -271,8 +271,9 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
                 brush_basic_sculpt_settings(col, context, brush)
 
             # topology_rake_factor
-            if capabilities.has_topology_rake and \
-               context.sculpt_object.use_dynamic_topology_sculpting:
+            if (capabilities.has_topology_rake and
+                context.sculpt_object.use_dynamic_topology_sculpting
+            ):
                 col.separator()
                 row = col.row()
                 row.prop(brush, "topology_rake_factor", slider=True)
index a34b7eeb91328197995b9f4eb66b515a54aadde2..1cb9385c848052127f2819b2c088a7d4501fa39b 100644 (file)
@@ -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);
                        }
index b25b9f4fff665353fdc6d735b76007774d936ea2..dc607fe91fd8b7b5cef48bb69be4798ec6510f91 100644 (file)
@@ -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;