diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-17 15:11:42 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-17 15:11:42 +0300 |
commit | 0af974d757e12417bd1befabd0d75b8210f3d838 (patch) | |
tree | a9168f60d75f5332242517dec4038a730adcc431 /source/blender/src/editscreen.c | |
parent | 61f203c80b72c4f63bbaa07fab86e8a245ae8a37 (diff) |
- bug fixes:
- "Crop and Anim" panel had wrong name... now "Anim and Movie"
- this panel didnt draw buttons always, should be for 'anim option' (which
is different from 'movie' option!
- added call to re-align the panels each time a new screen is set (also
after file read) to make sure new panels (or with new name) are properly
initialized
- fixed drawing error in nurbs buttons
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r-- | source/blender/src/editscreen.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index bce1253b354..7a2d7e91ac2 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -1869,21 +1869,25 @@ void setscreen(bScreen *sc) test_scale_screen(sc); testareas(); - for (sa= sc->areabase.first; sa; sa= sa->next) { + for(sa= sc->areabase.first; sa; sa= sa->next) { SpaceLink *sl; - for (sl= sa->spacedata.first; sl; sl= sl->next) { + for(sl= sa->spacedata.first; sl; sl= sl->next) { sl->area= sa; - if (sl->spacetype==SPACE_OOPS) { - SpaceOops *soops= (SpaceOops*) sl; + if(sl->spacetype==SPACE_OOPS) { + SpaceOops *soops= (SpaceOops *) sl; /* patch for old files */ - if (soops->v2d.cur.xmin==soops->v2d.cur.xmax) { + if(soops->v2d.cur.xmin==soops->v2d.cur.xmax) { extern void init_v2d_oops(View2D*); init_v2d_oops(&soops->v2d); } } + else if(sl->spacetype==SPACE_BUTS) { + SpaceButs *sbuts= (SpaceButs *)sl; + sbuts->re_align= 1; // force an align call, maybe new panels were added, also for after file reading + } } sa->cursor= CURSOR_STD; |