From 119844eb23718870df614a68a035573e9c5e4e11 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 18 Jul 2009 16:27:25 +0000 Subject: fixes for errors on startup and compiler errors and draw speedup. * Drawing the console text now skips all lines outside the view bounds. * Added dummy C operators for console.exec and console.autocomplete so blender wont complain at startup, its not really a problem but people testing reported it a few times. Eventually we should have some way python operators are initialized before the spaces operators are checked. * reordered the imports so the "ui" dir is imported before "io", for now this means bpy.ops is defined before exporters and importers need to use it, was causing a python error on startup. * fixed all compiler warnings for the console (gcc4.4) * stopped operators were printing out the return flag. * removed references to ACT_OT_test, TEXT_OT_console_exec and TEXT_OT_console_autocomplete --- source/blender/editors/space_console/space_console.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_console/space_console.c') diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c index 6bc948a880a..5551a303ead 100644 --- a/source/blender/editors/space_console/space_console.c +++ b/source/blender/editors/space_console/space_console.c @@ -215,6 +215,10 @@ void console_operatortypes(void) WM_operatortype_append(CONSOLE_OT_clear); WM_operatortype_append(CONSOLE_OT_history_cycle); WM_operatortype_append(CONSOLE_OT_zoom); + + /* Dummy, defined in space_console.py */ + WM_operatortype_append(CONSOLE_OT_exec); + WM_operatortype_append(CONSOLE_OT_autocomplete); } void console_keymap(struct wmWindowManager *wm) @@ -345,10 +349,7 @@ void ED_spacetype_console(void) art->draw= console_header_area_draw; BLI_addhead(&sc->regiontypes, art); - - - - BKE_spacetype_register(sc); -} + BKE_spacetype_register(sc); +} -- cgit v1.2.3