only run the banner function for console (not reports)

This commit is contained in:
Campbell Barton
2009-11-05 16:30:18 +00:00
parent 0f1e28a13f
commit 18e069f486

View File

@@ -164,7 +164,7 @@ static void console_main_area_draw(const bContext *C, ARegion *ar)
View2DScrollers *scrollers;
//float col[3];
if(sc->scrollback.first==NULL)
if((sc->type==CONSOLE_TYPE_PYTHON) && (sc->scrollback.first==NULL))
WM_operator_name_call((bContext *)C, "CONSOLE_OT_banner", WM_OP_EXEC_DEFAULT, NULL);
/* clear and setup matrix */