Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorXavier Thomas <xavier.thomas.1980@gmail.com>2011-01-04 07:56:27 +0300
committerXavier Thomas <xavier.thomas.1980@gmail.com>2011-01-04 07:56:27 +0300
commita2d055af140c8450d892eb806fc60395990c40f0 (patch)
tree9301784e1d054782e01ebf4a1d14b7af35d2ede7 /source
parentcdc7d0b85f088967684c6b6efb7600d06398abc9 (diff)
Fix bug #25471
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c21
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;