Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-07-18 20:27:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-07-18 20:27:25 +0400
commit119844eb23718870df614a68a035573e9c5e4e11 (patch)
tree0bc4f587f970c88b5c60c948fdfa8e420f4920ea /source/blender/editors/space_console/space_console.c
parent75b8badda5b044f56b512cd2874d80d7af1fd012 (diff)
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
Diffstat (limited to 'source/blender/editors/space_console/space_console.c')
-rw-r--r--source/blender/editors/space_console/space_console.c11
1 files changed, 6 insertions, 5 deletions
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);
+}