diff options
author | Xavier Thomas <xavier.thomas.1980@gmail.com> | 2011-01-04 07:56:27 +0300 |
---|---|---|
committer | Xavier Thomas <xavier.thomas.1980@gmail.com> | 2011-01-04 07:56:27 +0300 |
commit | a2d055af140c8450d892eb806fc60395990c40f0 (patch) | |
tree | 9301784e1d054782e01ebf4a1d14b7af35d2ede7 | |
parent | cdc7d0b85f088967684c6b6efb7600d06398abc9 (diff) |
Fix bug #25471
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index b475050878a..44aa8bbf4cc 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -11225,6 +11225,27 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } /* put compatibility code here until next subversion bump */ + + { + /* Fix for sample line scope initializing with no height */ + bScreen *sc; + ScrArea *sa; + for(sc= main->screen.first; sc; sc= sc->id.next) { + sa= sc->areabase.first; + while(sa) { + SpaceLink *sl; + for (sl= sa->spacedata.first; sl; sl= sl->next) { + if(sl->spacetype==SPACE_IMAGE) { + SpaceImage *sima= (SpaceImage *)sl; + if (sima->sample_line_hist.height == 0 ) + sima->sample_line_hist.height = 100; + } + } + sa= sa->next; + } + } + } + { Key *key; |