style cleanup: follow style guide for formatting of if/for/while loops, and else...
[blender.git] / source / blender / editors / space_info / space_info.c
index 2d3eb68c84dbfdd1aa60e893260ad985c34c13f3..9dc585371457f53aba96826bd27baf0d2bb3f5cd 100644 (file)
@@ -155,7 +155,7 @@ static void info_main_area_draw(const bContext *C, ARegion *ar)
        glClear(GL_COLOR_BUFFER_BIT);
 
        /* quick way to avoid drawing if not bug enough */
-       if(ar->winy < 16)
+       if (ar->winy < 16)
                return;
                
        info_textview_update_rect(C, ar);
@@ -233,7 +233,7 @@ static void info_main_area_listener(ARegion *ar, wmNotifier *wmn)
        /* context changes */
        switch(wmn->category) {
                case NC_SPACE:
-                       if(wmn->data == ND_SPACE_INFO_REPORT) {
+                       if (wmn->data == ND_SPACE_INFO_REPORT) {
                                /* redraw also but only for report view, could do less redraws by checking the type */
                                ED_region_tag_redraw(ar);
                        }
@@ -246,23 +246,23 @@ static void info_header_listener(ARegion *ar, wmNotifier *wmn)
        /* context changes */
        switch(wmn->category) {
                case NC_SCREEN:
-                       if(ELEM(wmn->data, ND_SCREENCAST, ND_ANIMPLAY))
+                       if (ELEM(wmn->data, ND_SCREENCAST, ND_ANIMPLAY))
                                ED_region_tag_redraw(ar);
                        break;
                case NC_WM:     
-                       if(wmn->data == ND_JOB)
+                       if (wmn->data == ND_JOB)
                                ED_region_tag_redraw(ar);
                        break;
                case NC_SCENE:
-                       if(wmn->data==ND_RENDER_RESULT)
+                       if (wmn->data==ND_RENDER_RESULT)
                                ED_region_tag_redraw(ar);
                        break;
                case NC_SPACE:  
-                       if(wmn->data == ND_SPACE_INFO)
+                       if (wmn->data == ND_SPACE_INFO)
                                ED_region_tag_redraw(ar);
                        break;
                case NC_ID:
-                       if(wmn->action == NA_RENAME)
+                       if (wmn->action == NA_RENAME)
                                ED_region_tag_redraw(ar);
        }
        
@@ -274,10 +274,11 @@ static void recent_files_menu_draw(const bContext *UNUSED(C), Menu *menu)
        uiLayout *layout= menu->layout;
        uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN);
        if (G.recent_files.first) {
-               for(recent = G.recent_files.first; (recent); recent = recent->next) {
+               for (recent = G.recent_files.first; (recent); recent = recent->next) {
                        uiItemStringO(layout, BLI_path_basename(recent->filepath), ICON_FILE_BLEND, "WM_OT_open_mainfile", "filepath", recent->filepath);
                }
-       } else {
+       }
+       else {
                uiItemL(layout, IFACE_("No Recent Files"), ICON_NONE);
        }
 }