diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-08-01 15:38:47 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-08-01 15:38:47 +0400 |
commit | c79e2666a22ab9da1b48645843cf7ceec19540c8 (patch) | |
tree | 2d945f9d46e392492fddd73dfe53ddcd44c6d0ce /source/blender/makesdna/DNA_screen_types.h | |
parent | 9df1b7d1fb1c6ce320cfedfcfe54a39d05253273 (diff) |
== Outliner - Patch #4364 ==
Now the Outliner can be scrolled horizontally too. This was the first patch I ever submitted, but it's gone through many revisions due to ugly Blender bugs that needed to be fixed.
Code Notes:
* I discovered an ancient bug which would cause Blender to hang when loading a file saved with horizontal scrollbars turned on for the Outliner/OOPS.
* Therefore, I've added special B_SCROLLO and HOR_SCROLLO defines for use by the Outliner only. These are used in place of B_SCROLL and HOR_SCROLL so that older Blender's won't choke on this stuff. Thanks for this suggestion Ton.
* The hanging occurred in draw_scroll in draw_ipo.c
Diffstat (limited to 'source/blender/makesdna/DNA_screen_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index cf3c2eaa168..65374983af5 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -147,7 +147,9 @@ typedef struct ScrArea { #define VERT_SCROLL 3 #define T_SCROLL 4 #define B_SCROLL 8 -#define HOR_SCROLL 12 +#define HOR_SCROLL 12 +#define B_SCROLLO 16 /* special hack for outliner hscroll - prevent hanging */ +#define HOR_SCROLLO 20 /* in older versions of blender */ /* Panel->snap - for snapping to screen edges */ #define PNL_SNAP_NONE 0 |