Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Sun, 24 May 2015 12:18:16 +0000 (22:18 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 24 May 2015 14:19:39 +0000 (00:19 +1000)
source/blender/blenkernel/intern/key.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/physics/BPH_mass_spring.h

index 3aea343ec5abe9cb7b137c1d874e79d5014385f6..4f4c5bf864345c505b65368762f6387c8da7e791 100644 (file)
@@ -1002,7 +1002,9 @@ static void do_key(const int start, int end, const int tot, char *poin, Key *key
                                        k1 += elemsize;
                                }
                        }
-                       else k1 += elemsize;
+                       else {
+                               k1 += elemsize;
+                       }
                }
                if (flagdo & 2) {
                        if (flagflo & 2) {
index d164f3c674b00a487ad4a594f3ab69a15fdf25ff..adf0fdfa60976c90c0b934368289221d391193c1 100644 (file)
@@ -1667,7 +1667,7 @@ static uiBlock *ui_icon_view_menu_cb(bContext *C, ARegion *ar, void *arg_litem)
                int w = UI_UNIT_X * 5;
                int h = UI_UNIT_Y * 5;
 
-               if(args.show_labels) {
+               if (args.show_labels) {
                        h += (int)(1.25f * UI_UNIT_Y);
                }
 
@@ -1676,13 +1676,15 @@ static uiBlock *ui_icon_view_menu_cb(bContext *C, ARegion *ar, void *arg_litem)
 
                icon = item[a].icon;
                value = item[a].value;
-               if(args.show_labels) {
-                       but = uiDefIconTextButR_prop(block, UI_BTYPE_ROW, 0, icon, item[a].name, x, y, w, h,
-                                            &args.ptr, args.prop, -1, 0, value, -1, -1, NULL);
+               if (args.show_labels) {
+                       but = uiDefIconTextButR_prop(
+                               block, UI_BTYPE_ROW, 0, icon, item[a].name, x, y, w, h,
+                               &args.ptr, args.prop, -1, 0, value, -1, -1, NULL);
                }
                else {
-                       but = uiDefIconButR_prop(block, UI_BTYPE_ROW, 0, icon, x, y, w, h,
-                                                &args.ptr, args.prop, -1, 0, value, -1, -1, NULL);
+                       but = uiDefIconButR_prop(
+                               block, UI_BTYPE_ROW, 0, icon, x, y, w, h,
+                               &args.ptr, args.prop, -1, 0, value, -1, -1, NULL);
                }
                ui_def_but_icon(but, icon, UI_HAS_ICON | UI_BUT_ICON_PREVIEW);
        }
index ac34184c208ca7aba5d8c48636d0cc876538df7f..a569bf469b326d415d76e2f04d3026164c4d632c 100644 (file)
@@ -4669,7 +4669,9 @@ static void *do_projectpaint_thread(void *ph_v)
                                                        rgb_straight[3] = projPixel->origColor.f_pt[3];
                                                        straight_to_premul_v4_v4(projPixel->pixel.f_pt, rgb_straight);
                                                }
-                                               else projPixel->pixel.ch_pt[3] = projPixel->origColor.ch_pt[3];
+                                               else {
+                                                       projPixel->pixel.ch_pt[3] = projPixel->origColor.ch_pt[3];
+                                               }
                                        }
 
                                        last_partial_redraw_cell = last_projIma->partRedrawRect + projPixel->bb_cell_index;
@@ -4844,7 +4846,9 @@ static void *do_projectpaint_thread(void *ph_v)
                                                                        rgb_straight[3] = projPixel->origColor.f_pt[3];
                                                                        straight_to_premul_v4_v4(projPixel->pixel.f_pt, rgb_straight);
                                                                }
-                                                               else projPixel->pixel.ch_pt[3] = projPixel->origColor.ch_pt[3];
+                                                               else {
+                                                                       projPixel->pixel.ch_pt[3] = projPixel->origColor.ch_pt[3];
+                                                               }
                                                        }
                                                }
 
index 1a10b9398a25a73ed6368511078dd9fdad26fb57..de5fdd2b81d9af228c9e3d4fb56b1aa62e9a5a7a 100644 (file)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/physics/intern/BPH_mass_spring.h
+/** \file blender/physics/BPH_mass_spring.h
  *  \ingroup bph
  */