Commit: 186bd4d87ba14cfe4f23ed11be1166b42dd0449e
Author: Campbell Barton
Date:   Tue Feb 26 14:31:14 2019 +1100
Branches: master
https://developer.blender.org/rB186bd4d87ba14cfe4f23ed11be1166b42dd0449e

Cleanup: indentation, trailing space

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

M       source/blender/blenkernel/intern/subdiv_ccg.c
M       source/blender/blenkernel/intern/subdiv_ccg_material.c
M       source/blender/blenloader/intern/readfile.c
M       source/blender/draw/engines/gpencil/gpencil_draw_utils.c
M       source/blender/draw/engines/gpencil/gpencil_engine.c
M       source/blender/draw/engines/gpencil/shaders/gpencil_fill_frag.glsl
M       source/blender/editors/screen/screen_ops.c
M       source/blender/editors/transform/transform_conversions.c
M       source/blender/gpu/intern/gpu_buffers.c
M       source/blender/makesdna/intern/dna_utils.h
M       source/blender/makesrna/intern/rna_access.c
M       source/blender/windowmanager/intern/wm_cursors.c

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

diff --git a/source/blender/blenkernel/intern/subdiv_ccg.c 
b/source/blender/blenkernel/intern/subdiv_ccg.c
index c35b38b4184..e14e4d91e1e 100644
--- a/source/blender/blenkernel/intern/subdiv_ccg.c
+++ b/source/blender/blenkernel/intern/subdiv_ccg.c
@@ -628,7 +628,8 @@ SubdivCCG *BKE_subdiv_to_ccg(
        subdiv_ccg_init_faces(subdiv_ccg);
        subdiv_ccg_init_faces_neighborhood(subdiv_ccg);
        if (!subdiv_ccg_evaluate_grids(
-               subdiv_ccg, subdiv, mask_evaluator, material_flags_evaluator)) {
+                   subdiv_ccg, subdiv, mask_evaluator, 
material_flags_evaluator))
+       {
                BKE_subdiv_ccg_destroy(subdiv_ccg);
                BKE_subdiv_stats_end(&subdiv->stats, 
SUBDIV_STATS_SUBDIV_TO_CCG);
                return NULL;
diff --git a/source/blender/blenkernel/intern/subdiv_ccg_material.c 
b/source/blender/blenkernel/intern/subdiv_ccg_material.c
index 0dc86095cff..1e086e00e25 100644
--- a/source/blender/blenkernel/intern/subdiv_ccg_material.c
+++ b/source/blender/blenkernel/intern/subdiv_ccg_material.c
@@ -64,4 +64,4 @@ void BKE_subdiv_ccg_material_flags_init_from_mesh(
                subdiv_ccg_material_flags_eval;
        material_flags_evaluator->free = subdiv_ccg_material_flags_free;
        material_flags_evaluator->user_data = data;
-}
\ No newline at end of file
+}
diff --git a/source/blender/blenloader/intern/readfile.c 
b/source/blender/blenloader/intern/readfile.c
index e9053d55390..6f62b260444 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2135,7 +2135,7 @@ static void *read_struct(FileData *fd, BHead *bh, const 
char *blockname)
        if (bh->len) {
 #ifdef USE_BHEAD_READ_ON_DEMAND
                BHead *bh_orig = bh;
- #endif
+#endif
 
                /* switch is based on file dna */
                if (bh->SDNAnr && (fd->flags & FD_FLAGS_SWITCH_ENDIAN)) {
@@ -2147,7 +2147,7 @@ static void *read_struct(FileData *fd, BHead *bh, const 
char *blockname)
                                        return NULL;
                                }
                        }
- #endif
+#endif
                        switch_endian_structs(fd->filesdna, bh);
                }
 
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c 
b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index d505095a393..7b2cf0bfe65 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -618,9 +618,9 @@ static void gpencil_add_stroke_vertexdata(
                                tcolor[3] = gps->runtime.tmp_stroke_rgba[3] * 
opacity;
 
                                if ((use_wiremode) &&
-                                       ((gps->runtime.tmp_stroke_rgba[3] < 
GPENCIL_ALPHA_OPACITY_THRESH) ||
-                                        (((gp_style->flag & 
GP_STYLE_STROKE_SHOW) == 0))) &&
-                                       (gps->runtime.tmp_fill_rgba[3] >= 
GPENCIL_ALPHA_OPACITY_THRESH))
+                                   ((gps->runtime.tmp_stroke_rgba[3] < 
GPENCIL_ALPHA_OPACITY_THRESH) ||
+                                    (((gp_style->flag & GP_STYLE_STROKE_SHOW) 
== 0))) &&
+                                   (gps->runtime.tmp_fill_rgba[3] >= 
GPENCIL_ALPHA_OPACITY_THRESH))
                                {
                                        interp_v3_v3v3(tcolor, 
gps->runtime.tmp_fill_rgba, tintcolor, tintcolor[3]);
                                        tcolor[3] = 
gps->runtime.tmp_fill_rgba[3] * opacity;
@@ -827,7 +827,7 @@ static void gpencil_draw_strokes(
                                /* fill */
                                if ((gp_style->flag & GP_STYLE_FILL_SHOW) &&
                                    (!stl->storage->simplify_fill) &&
-                                       (stl->storage->shading_type != OB_WIRE) 
&&
+                                   (stl->storage->shading_type != OB_WIRE) &&
                                    ((gps->flag & GP_STROKE_NOFILL) == 0))
                                {
                                        gpencil_add_fill_vertexdata(
@@ -838,7 +838,7 @@ static void gpencil_draw_strokes(
                                /* No fill strokes, must show stroke always */
                                if (((gp_style->flag & GP_STYLE_STROKE_SHOW) ||
                                     (gps->flag & GP_STROKE_NOFILL) ||
-                                        (stl->storage->shading_type == 
OB_WIRE)) &&
+                                    (stl->storage->shading_type == OB_WIRE)) &&
                                    ((gp_style->stroke_rgba[3] > 
GPENCIL_ALPHA_OPACITY_THRESH) ||
                                     (gpl->blend_mode == eGplBlendMode_Normal)))
                                {
@@ -925,8 +925,8 @@ static void gpencil_draw_onion_strokes(
                /* stroke */
                gpencil_add_stroke_vertexdata(
                        cache, ob, gpl, gpf, gps, opacity, tintcolor,
-                               true, custonion,
-                               (stl->storage->shading_type == OB_WIRE));
+                       true, custonion,
+                       (stl->storage->shading_type == OB_WIRE));
 
                stl->storage->shgroup_id++;
        }
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c 
b/source/blender/draw/engines/gpencil/gpencil_engine.c
index d2a7ca5a87b..a93c9377d98 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -523,7 +523,7 @@ void GPENCIL_cache_init(void *vedata)
 
                /* create effects passes */
                if ((!stl->storage->simplify_fx) &&
-                       (stl->storage->shading_type != OB_WIRE))
+                   (stl->storage->shading_type != OB_WIRE))
                {
                        GPENCIL_create_fx_passes(psl);
                }
@@ -552,8 +552,8 @@ static void gpencil_add_draw_data(void *vedata, Object *ob)
        /* FX passses */
        cache_ob->has_fx = false;
        if ((!stl->storage->simplify_fx) &&
-               (stl->storage->shading_type != OB_WIRE) &&
-               (BKE_shaderfx_has_gpencil(ob)))
+           (stl->storage->shading_type != OB_WIRE) &&
+           (BKE_shaderfx_has_gpencil(ob)))
        {
                cache_ob->has_fx = true;
                if ((!stl->storage->simplify_fx) && (!is_multiedit)) {
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_fill_frag.glsl 
b/source/blender/draw/engines/gpencil/shaders/gpencil_fill_frag.glsl
index 29803c7b3e2..ac38506efd1 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_fill_frag.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_fill_frag.glsl
@@ -154,5 +154,5 @@ void main()
        else {
                gl_FragDepth = 0.000001;
        }
-       
+
 }
diff --git a/source/blender/editors/screen/screen_ops.c 
b/source/blender/editors/screen/screen_ops.c
index f28e58fca5f..372bbd5f79b 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -964,8 +964,9 @@ static int actionzone_modal(bContext *C, wmOperator *op, 
const wmEvent *event)
 
                                /* Have we dragged off the zone and are not on 
an edge? */
                                if ((ED_area_actionzone_find_xy(sad->sa1, 
&event->x) != sad->az) &&
-                                       
(screen_geom_area_map_find_active_scredge(
-                                               AREAMAP_FROM_SCREEN(sc), 
&screen_rect, event->x, event->y) == NULL)) {
+                                   (screen_geom_area_map_find_active_scredge(
+                                           AREAMAP_FROM_SCREEN(sc), 
&screen_rect, event->x, event->y) == NULL))
+                               {
                                        /* Are we still in same area? */
                                        if (BKE_screen_find_area_xy(sc, 
SPACE_TYPE_ANY, event->x, event->y) == sad->sa1) {
                                                /* Same area, so possible 
split. */
diff --git a/source/blender/editors/transform/transform_conversions.c 
b/source/blender/editors/transform/transform_conversions.c
index 90ddee99f9c..9895e654564 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -405,7 +405,7 @@ static void createTransCursor_view3d(TransInfo *t)
        td->ob = NULL;
 
        unit_m3(td->mtx);
-    BKE_scene_cursor_rot_to_mat3(cursor, td->axismtx);
+       BKE_scene_cursor_rot_to_mat3(cursor, td->axismtx);
        normalize_m3(td->axismtx);
        pseudoinverse_m3_m3(td->smtx, td->mtx, PSEUDOINVERSE_EPSILON);
 
diff --git a/source/blender/gpu/intern/gpu_buffers.c 
b/source/blender/gpu/intern/gpu_buffers.c
index a59b22dee0d..edf5eb7e7d1 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -469,7 +469,7 @@ static void gpu_pbvh_grid_fill_index_buffers(
                                }
                                GPU_indexbuf_add_line_verts(&elb_lines, v1, v2);
                        }
-       
+
                        if (grid_visible) {
                                /* Grid corners */
                                v0 = offset;
diff --git a/source/blender/makesdna/intern/dna_utils.h 
b/source/blender/makesdna/intern/dna_utils.h
index 00dd53d093b..6e96cf43622 100644
--- a/source/blender/makesdna/intern/dna_utils.h
+++ b/source/blender/makesdna/intern/dna_utils.h
@@ -21,8 +21,8 @@
 #ifndef __DNA_UTILS_H__
 #define __DNA_UTILS_H__
 
-struct MemArena;
 struct GHash;
+struct MemArena;
 
 int DNA_elem_array_size(const char *str);
 
diff --git a/source/blender/makesrna/intern/rna_access.c 
b/source/blender/makesrna/intern/rna_access.c
index 2c365c36b72..8282ed04520 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -6380,7 +6380,7 @@ static void rna_array_as_string_recursive(
        if (totdim > 1) {
                totdim--;
                const int end = dim_size[totdim] - 1;
-               for (int i = 0; i <= end; i++){
+               for (int i = 0; i <= end; i++) {
                        rna_array_as_string_recursive(type, buf_p, totdim, 
dim_size, dynstr);
                        if (i < end || !end) {
                                BLI_dynstr_append(dynstr, ", ");
diff --git a/source/blender/windowmanager/intern/wm_cursors.c 
b/source/blender/windowmanager/intern/wm_cursors.c
index b0d74458bb7..de293373870 100644
--- a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -1248,14 +1248,14 @@ BEGIN_CURSOR_BLOCK
                0xE0,  0x03,  0xE0,  0x03,  0xE0,  0x03,  0x00,  0x00,
                0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00
        };
-       
+
        static char narrow_smsk[] = {
                0x80,  0x00,  0xC0,  0x01,  0xE0,  0x03,  0xF0,  0x07,
                0xF8,  0x0F,  0xFC,  0x1F,  0xFE,  0x3F,  0xFF,  0x7F,
                0xF0,  0x07,  0xF0,  0x07,  0xF0,  0x07,  0xF0,  0x07,
                0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00
        };
-       
+
        static char narrow_lbm[] = {
                0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,
                0x00,  0x80,  0x00,  0x00,  0x00,  0xC0,  0x01,  0x00,
@@ -1274,7 +1274,7 @@ BEGIN_CURSOR_BLOCK
                0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,
                0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00
        };
-       
+
        static char narrow_lmsk[] = {
                0x00,  0x80,  0x00,  0x00,  0x00,  0xC0,  0x01,  0x00,
                0x00,  0xE0,  0x03,  0x00,  0x00,  0xF0,  0x07,  0x00,
@@ -1293,7 +1293,7 @@ BEGIN_CURSOR_BLOCK
                0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,
                0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00
        };
-       
+
        static BCursor NArrowCursor = {
                /*small*/
                narrow_sbm, narrow_smsk,
@@ -1306,7 +1306,7 @@ BEGIN_CURSOR_BLOCK
                /*color*/
                BC_BLACK, BC_WHITE
        };
-       
+
        BlenderCursor[BC_N_ARROWCURSOR] = &NArrowCursor;
 
 END_CURSOR_BLOCK
@@ -1320,14 +1320,14 @@ BEGIN_CURSOR_BLOCK
                0xE0,  0x03,  0xFC,  0x1F,  0xF8,  0x0F,  0xF0,  0x07,
                0xE0,  0x03,  0xC0,  0x01,  0x80,  0x00,  0x00,  0x00
        };
-       
+
        static char sarrow_smsk[] = {
                0x00,  0x00,  0

@@ Diff output truncated at 10240 characters. @@

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to