diff options
author | Ton Roosendaal <ton@blender.org> | 2010-11-20 19:00:36 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-11-20 19:00:36 +0300 |
commit | 6e5ccba6da0f89649bd74fbf5c14852509603d88 (patch) | |
tree | ffb5308164373491e2318d46de59f5ad34152ab7 /source/blender/blenloader | |
parent | dcd5d7b99d5056dc19546eee277965bcbf53b54f (diff) |
Bugfix #24801
- Reading 2.4x files could cause print "missing region type".
Appeared the 2.50 do_versions patch differed from default region
definitions
- Sometimes editors showed wrong button for type browsing.
Was because variable wasn't correctly reset on saves.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 8a9916cb7f0..6c407b8a1ed 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -6108,7 +6108,7 @@ static void area_add_window_regions(ScrArea *sa, SpaceLink *sl, ListBase *lb) case SPACE_NODE: ar= MEM_callocN(sizeof(ARegion), "nodetree area for node"); BLI_addtail(lb, ar); - ar->regiontype= RGN_TYPE_CHANNELS; + ar->regiontype= RGN_TYPE_UI; ar->alignment= RGN_ALIGN_LEFT; ar->v2d.scroll = (V2D_SCROLL_RIGHT|V2D_SCROLL_BOTTOM); ar->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL; @@ -6357,6 +6357,9 @@ static void do_versions_windowmanager_2_50(bScreen *screen) sl->spacetype= SPACE_INFO; /* spacedata then matches */ } + /* it seems to be possible in 2.5 to have this saved, filewindow probably */ + sa->butspacetype= sa->spacetype; + /* pushed back spaces also need regions! */ if(sa->spacedata.first) { sl= sa->spacedata.first; |