diff options
author | Ton Roosendaal <ton@blender.org> | 2004-04-20 02:05:37 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-04-20 02:05:37 +0400 |
commit | dfc824a13457c724b6e86606c4586036bc39cf71 (patch) | |
tree | 7df1354cfb50c8e72db45e1d9089f73b2d004db8 /source/blender/blenloader | |
parent | bf253660b773dd904cb13bb2f0c05c80890ef5cd (diff) |
Preparations to have Panels in all window types. Also implemented
it for the UV Image window (as Nkey replacement). Blendix can take
this further now.
Other little improvement: vertices in UV window now draw unselected
first, and then selected over it. Less confusing!
Next spaces: Action and Nla.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index cb241af6c4c..1d7668af5d1 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -4117,7 +4117,8 @@ static void do_versions(Main *main) if(main->versionfile <= 232) { Tex *tex= main->tex.first; World *wrld= main->world.first; - + bScreen *sc; + while(tex) { /* copied from kernel texture.c */ if(tex->ns_outscale==0.0) { @@ -4143,7 +4144,19 @@ static void do_versions(Main *main) if(wrld->aoenergy==0.0) wrld->aoenergy= 1.0; wrld= wrld->id.next; } - + + + // new variable blockscale, for panels in any area, do again because new + // areas didnt initialize it to 0.7 yet + for (sc= main->screen.first; sc; sc= sc->id.next) { + ScrArea *sa; + for (sa= sc->areabase.first; sa; sa= sa->next) { + SpaceLink *sl; + for (sl= sa->spacedata.first; sl; sl= sl->next) { + if(sl->blockscale==0.0) sl->blockscale= 0.7; + } + } + } } |