diff options
-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; |