diff options
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); |