Code cleanup: indentation
authorCampbell Barton <ideasman42@gmail.com>
Tue, 13 May 2014 20:37:56 +0000 (06:37 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 13 May 2014 20:37:56 +0000 (06:37 +1000)
source/blender/blenkernel/BKE_crazyspace.h
source/blender/blenkernel/BKE_paint.h
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/sculpt_undo.c
source/blender/editors/space_image/image_ops.c
source/blender/makesrna/intern/rna_brush.c
source/blender/makesrna/intern/rna_scene.c
source/blender/modifiers/intern/MOD_boolean_util.c
source/blender/nodes/texture/nodes/node_texture_math.c

index feed1594d9071190479aaa676530ed88505af096..98bcdc5cfaa2f7e2426e686d1aa972aeb3f34b1b 100644 (file)
@@ -41,8 +41,9 @@ struct Mesh;
 
 /* crazyspace.c */
 float (*BKE_crazyspace_get_mapped_editverts(struct Scene *scene, struct Object *obedit))[3];
-void BKE_crazyspace_set_quats_editmesh(struct BMEditMesh *em, float (*origcos)[3], float (*mappedcos)[3], float (*quats)[4],
-                                                                  const bool use_select);
+void BKE_crazyspace_set_quats_editmesh(
+        struct BMEditMesh *em, float (*origcos)[3], float (*mappedcos)[3], float (*quats)[4],
+        const bool use_select);
 void BKE_crazyspace_set_quats_mesh(struct Mesh *me, float (*origcos)[3], float (*mappedcos)[3], float (*quats)[4]);
 int BKE_sculpt_get_first_deform_matrices(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]);
 void BKE_crazyspace_build_sculpt(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]);
index 0061280684f7cea2789ef5270b817439c5171959..4381330085031bc8b3aa2178831c2f3496f2c11f 100644 (file)
@@ -178,10 +178,10 @@ void BKE_free_sculptsession_deformMats(struct SculptSession *ss);
 void BKE_sculptsession_bm_to_me(struct Object *ob, bool reorder);
 void BKE_sculptsession_bm_to_me_for_render(struct Object *object);
 void BKE_sculpt_update_mesh_elements(struct Scene *scene, struct Sculpt *sd, struct Object *ob,
-                                                                bool need_pmap, bool need_mask);
+                                     bool need_pmap, bool need_mask);
 struct MultiresModifierData *BKE_sculpt_multires_active(struct Scene *scene, struct Object *ob);
 int BKE_sculpt_mask_layers_ensure(struct Object *ob,
-                                                                 struct MultiresModifierData *mmd);
+                                  struct MultiresModifierData *mmd);
 
 enum {
        SCULPT_MASK_LAYER_CALC_VERT = (1 << 0),
index 575b7fc4062b6e0adc813ddb04d87f484b90ae9b..d0def6b07d652a8153f4dab2fe05ef1eab321ff8 100644 (file)
@@ -491,7 +491,7 @@ static PaintOperation *texture_paint_init(bContext *C, wmOperator *op, float mou
 
        settings->imapaint.flag |= IMAGEPAINT_DRAWING;
        ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name,
-                                                 ED_image_undo_restore, ED_image_undo_free);
+                                ED_image_undo_restore, ED_image_undo_free);
 
        {
                UnifiedPaintSettings *ups = &settings->unified_paint_settings;
index f69c7e0ed41fd3568170fd204404a5094ad07212..b0e1cdf2d44891bd94017162fc8211dbfdb3d792 100644 (file)
@@ -4337,7 +4337,7 @@ static int texture_paint_camera_project_exec(bContext *C, wmOperator *op)
        scene->toolsettings->imapaint.flag |= IMAGEPAINT_DRAWING;
 
        ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name,
-                                                 ED_image_undo_restore, ED_image_undo_free);
+                                ED_image_undo_restore, ED_image_undo_free);
 
        /* allocate and initialize spatial data structures */
        project_paint_begin(&ps);
index 9beb11ec2f4c4022873a094882b750d3f643b446..7a7dad9a454c15af49105f83bd4234098d209425 100644 (file)
@@ -542,7 +542,8 @@ static void sculpt_undo_free(ListBase *lb)
        }
 }
 
-bool sculpt_undo_cleanup(bContext *C, ListBase *lb) {
+bool sculpt_undo_cleanup(bContext *C, ListBase *lb)
+{
        Object *ob = CTX_data_active_object(C);
        SculptUndoNode *unode;
 
@@ -879,7 +880,7 @@ SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node,
 void sculpt_undo_push_begin(const char *name)
 {
        ED_undo_paint_push_begin(UNDO_PAINT_MESH, name,
-                                                 sculpt_undo_restore, sculpt_undo_free);
+                                sculpt_undo_restore, sculpt_undo_free);
 }
 
 void sculpt_undo_push_end(void)
index 6f42a0b8928b332b6361c254a0c260ff5ecc25eb..57be15f23fb426d45793e03d36f7237c712da6b2 100644 (file)
@@ -2034,7 +2034,7 @@ static int image_invert_exec(bContext *C, wmOperator *op)
 
        if (support_undo) {
                ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name,
-                                                                ED_image_undo_restore, ED_image_undo_free);
+                                        ED_image_undo_restore, ED_image_undo_free);
                /* not strictly needed, because we only imapaint_dirty_region to invalidate all tiles
                 * but better do this right in case someone copies this for a tool that uses partial redraw better */
                ED_imapaint_clear_partial_redraw();
index 9c81d5893bf0f0d5a538e1fc716778406e40a264..893cad2b76a2045ac4da09715cb30e5f6b385e7e 100644 (file)
@@ -54,7 +54,7 @@ static EnumPropertyItem sculpt_stroke_method_items[] = {
        {BRUSH_DRAG_DOT, "DRAG_DOT", 0, "Drag Dot", "Allows a single dot to be carefully positioned"},
        {BRUSH_SPACE, "SPACE", 0, "Space", "Limit brush application to the distance specified by spacing"},
        {BRUSH_AIRBRUSH, "AIRBRUSH", 0, "Airbrush", "Keep applying paint effect while holding mouse (spray)"},
-    {BRUSH_ANCHORED, "ANCHORED", 0, "Anchored", "Keep the brush anchored to the initial location"},
+       {BRUSH_ANCHORED, "ANCHORED", 0, "Anchored", "Keep the brush anchored to the initial location"},
        {0, NULL, 0, NULL, NULL}
 };
 
index 08fe2701915d9168a1dfa1adb2680aeac6317300..82dae1da4986f825ead4d96dd89e82af02ad12b9 100644 (file)
@@ -1660,7 +1660,7 @@ static void rna_FreestyleSettings_module_remove(ID *id, FreestyleSettings *confi
 
        if (!BKE_freestyle_module_delete((FreestyleConfig *)config, module)) {
                if (module->script)
-                       BKE_reportf(reports, RPT_ERROR, "Style module '%s' could not be removed", module->script->id.name+2);
+                       BKE_reportf(reports, RPT_ERROR, "Style module '%s' could not be removed", module->script->id.name + 2);
                else
                        BKE_reportf(reports, RPT_ERROR, "Style module could not be removed");
                return;
index 7a1c7bbc23391cfb7742ba975710a0a95e1ba094..4b6d960584cb769155de22cbe66140bc033e0a6c 100644 (file)
@@ -433,7 +433,7 @@ static void exporter_SetVert(ExportMeshData *export_data,
        dm_orig = which_dm(export_data, which_orig_mesh);
        if (dm_orig) {
                BLI_assert(orig_vert_index >= 0 && orig_vert_index < dm_orig->getNumVerts(dm_orig));
-               mvert[vert_index] = which_mvert(export_data, which_orig_mesh) [orig_vert_index];
+               mvert[vert_index] = which_mvert(export_data, which_orig_mesh)[orig_vert_index];
                CustomData_copy_data(&dm_orig->vertData, &dm->vertData, orig_vert_index, vert_index, 1);
        }
 
@@ -467,7 +467,7 @@ static void exporter_SetEdge(ExportMeshData *export_data,
        if (dm_orig) {
                BLI_assert(orig_edge_index >= 0 && orig_edge_index < dm_orig->getNumEdges(dm_orig));
 
-               *medge = which_medge(export_data, which_orig_mesh) [orig_edge_index];
+               *medge = which_medge(export_data, which_orig_mesh)[orig_edge_index];
 
                /* Copy all edge layers, including medge. */
                CustomData_copy_data(&dm_orig->edgeData, &dm->edgeData, orig_edge_index, edge_index, 1);
@@ -556,7 +556,7 @@ static void exporter_SetPoly(ExportMeshData *export_data,
        BLI_assert(orig_poly_index >= 0 && orig_poly_index < dm_orig->getNumPolys(dm_orig));
 
        /* Copy all poly layers, including mpoly. */
-       *mpoly = which_mpoly(export_data, which_orig_mesh) [orig_poly_index];
+       *mpoly = which_mpoly(export_data, which_orig_mesh)[orig_poly_index];
        CustomData_copy_data(&dm_orig->polyData, &dm->polyData, orig_poly_index, poly_index, 1);
 
        /* Set material of the curren poly.
@@ -625,7 +625,7 @@ static void exporter_SetLoop(ExportMeshData *export_data,
                BLI_assert(orig_loop_index >= 0 && orig_loop_index < dm_orig->getNumLoops(dm_orig));
 
                /* Copy all loop layers, including mloop. */
-               *mloop = which_mloop(export_data, which_orig_mesh) [orig_loop_index];
+               *mloop = which_mloop(export_data, which_orig_mesh)[orig_loop_index];
                CustomData_copy_data(&dm_orig->loopData, &dm->loopData, orig_loop_index, loop_index, 1);
        }
 
index 4765ee5f02a8adbff9be45bc772d6f7ad26d25cc..9bd2532b4b82a96e331670c96c078cd04be80140 100644 (file)
@@ -174,7 +174,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
                        break;
                }
 
-        case 17: /* Modulo */
+               case 17: /* Modulo */
                {
                        if (in1 == 0.0f)
                                *out = 0.0f;