diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:47 +0300 |
commit | ce3b78c73a7ccc16fdccf7decedb5d1578dfdf0a (patch) | |
tree | 87f1a9c41ebe6f74806f1ae76206f1d328c85700 /source/blender/editors/space_console/space_console.c | |
parent | 5279d118c2ddee0e6fef66aaf78452c1b302dd42 (diff) |
Cleanup: style, use braces for editor/spaces
Diffstat (limited to 'source/blender/editors/space_console/space_console.c')
-rw-r--r-- | source/blender/editors/space_console/space_console.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c index 65f1fe36fec..5d4623e6fe6 100644 --- a/source/blender/editors/space_console/space_console.c +++ b/source/blender/editors/space_console/space_console.c @@ -88,11 +88,13 @@ static void console_free(SpaceLink *sl) { SpaceConsole *sc = (SpaceConsole *) sl; - while (sc->scrollback.first) + while (sc->scrollback.first) { console_scrollback_free(sc, sc->scrollback.first); + } - while (sc->history.first) + while (sc->history.first) { console_history_free(sc, sc->history.first); + } } @@ -208,8 +210,9 @@ static void console_main_region_draw(const bContext *C, ARegion *ar) View2D *v2d = &ar->v2d; View2DScrollers *scrollers; - if (BLI_listbase_is_empty(&sc->scrollback)) + if (BLI_listbase_is_empty(&sc->scrollback)) { WM_operator_name_call((bContext *)C, "CONSOLE_OT_banner", WM_OP_EXEC_DEFAULT, NULL); + } /* clear and setup matrix */ UI_ThemeClearColor(TH_BACK); |