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:
authorTon Roosendaal <ton@blender.org>2013-04-12 16:30:05 +0400
committerTon Roosendaal <ton@blender.org>2013-04-12 16:30:05 +0400
commitadb96478a72013abc9172b7967b5dd2904681f13 (patch)
treeac69b61bbc2f464073a0e2a9ef06f9494883872f /source/blender/editors/space_console
parent0e4b092c2dccf8889ab159f360f152f5428fea33 (diff)
Adding scrollbar default to Python console and Python Info log.
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r--source/blender/editors/space_console/space_console.c3
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 4243ae4e2df..ace39f8d669 100644
--- a/source/blender/editors/space_console/space_console.c
+++ b/source/blender/editors/space_console/space_console.c
@@ -138,6 +138,9 @@ static void console_main_area_init(wmWindowManager *wm, ARegion *ar)
const float prev_y_min = ar->v2d.cur.ymin; /* so re-sizing keeps the cursor visible */
+ /* force it on init, for old files, until it becomes config */
+ ar->v2d.scroll = (V2D_SCROLL_RIGHT);
+
UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_CUSTOM, ar->winx, ar->winy);
/* always keep the bottom part of the view aligned, less annoying */