Scroller initialize for Image Window regions too.
authorTon Roosendaal <ton@blender.org>
Sun, 10 Feb 2013 14:59:38 +0000 (14:59 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 10 Feb 2013 14:59:38 +0000 (14:59 +0000)
source/blender/editors/space_image/space_image.c

index 35ba83a..ca8270b 100644 (file)
@@ -750,6 +750,7 @@ static void image_buttons_area_init(wmWindowManager *wm, ARegion *ar)
 {
        wmKeyMap *keymap;
 
+       ar->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_VERTICAL_HIDE;
        ED_region_panels_init(wm, ar);
        
        keymap = WM_keymap_find(wm->defaultconf, "Image Generic", SPACE_IMAGE, 0);
@@ -789,6 +790,7 @@ static void image_scope_area_init(wmWindowManager *wm, ARegion *ar)
 {
        wmKeyMap *keymap;
        
+       ar->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_VERTICAL_HIDE;
        ED_region_panels_init(wm, ar);
        
        keymap = WM_keymap_find(wm->defaultconf, "Image Generic", SPACE_IMAGE, 0);