diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-09-24 15:37:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-09-24 15:37:33 +0400 |
commit | 4aade8ad7e2e0f941579533fcedb51a87704af18 (patch) | |
tree | 55aee455c908ddc7d1dfc3701e36ce790d8b4b65 /source/blender/editors/space_console | |
parent | 300df490601a4267a9c77239b5638e494672a38f (diff) |
fix for [#19437] Console (Python): first run doesn't have the ">>>"
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r-- | source/blender/editors/space_console/space_console.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c index 234f3b5baf2..19fb575ed16 100644 --- a/source/blender/editors/space_console/space_console.c +++ b/source/blender/editors/space_console/space_console.c @@ -174,6 +174,9 @@ static void console_main_area_draw(const bContext *C, ARegion *ar) console_scrollback_add_str(C, "Autocomplete: Ctrl+Space", 0); console_scrollback_add_str(C, "Ctrl +/- Wheel: Zoom", 0); console_scrollback_add_str(C, "Builtin Modules: bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.ui", 0); + + /* This is normally set by python but to start with its easier just to set it like this rather then running python with no args */ + strcpy(sc->prompt, ">>> "); } /* clear and setup matrix */ |