diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-15 23:19:43 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-15 23:19:43 +0400 |
commit | 4df1836325bd2847f3c88eb6fafa98e7bafea81c (patch) | |
tree | c97e1fb46527bdec40f787457cee1152405a990d /source/blender/editors/screen/area.c | |
parent | 097d05a1afed5d3a6e919c8885da92e35fe482bc (diff) |
2.5: User Preferences
* Added basic infrastructure to layout user preferences. The
intention is that you open a user preferences space in place
of the buttons space, and have panels there.
* The existing sections don't have to be followed, it's easy
to create different ones, just change the user_pref_sections
enum in RNA.
* This will get separated from the info header later.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r-- | source/blender/editors/screen/area.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index e923a3bde61..addda6e02ee 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1254,8 +1254,10 @@ void ED_region_panels_init(wmWindowManager *wm, ARegion *ar) { ListBase *keymap; - // XXX quick hack for files saved with 2.5 already (i.e. the builtin defaults file) + // XXX quick hacks for files saved with 2.5 already (i.e. the builtin defaults file) ar->v2d.scroll |= (V2D_SCROLL_RIGHT|V2D_SCROLL_BOTTOM); + if(!(ar->v2d.align & V2D_ALIGN_NO_POS_Y)) + ar->v2d.flag &= ~V2D_IS_INITIALISED; UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_PANELS_UI, ar->winx, ar->winy); |