Revision: 55988
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55988
Author:   ton
Date:     2013-04-12 12:30:05 +0000 (Fri, 12 Apr 2013)
Log Message:
-----------
Adding scrollbar default to Python console and Python Info log.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_console/space_console.c
    trunk/blender/source/blender/editors/space_info/space_info.c

Modified: trunk/blender/source/blender/editors/space_console/space_console.c
===================================================================
--- trunk/blender/source/blender/editors/space_console/space_console.c  
2013-04-12 12:19:50 UTC (rev 55987)
+++ trunk/blender/source/blender/editors/space_console/space_console.c  
2013-04-12 12:30:05 UTC (rev 55988)
@@ -138,6 +138,9 @@
 
        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 */

Modified: trunk/blender/source/blender/editors/space_info/space_info.c
===================================================================
--- trunk/blender/source/blender/editors/space_info/space_info.c        
2013-04-12 12:19:50 UTC (rev 55987)
+++ trunk/blender/source/blender/editors/space_info/space_info.c        
2013-04-12 12:30:05 UTC (rev 55988)
@@ -129,6 +129,9 @@
 {
        wmKeyMap *keymap;
 
+       /* 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);
 
        /* own keymap */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to