diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-05 14:18:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-05 14:18:59 +0400 |
commit | c9f667a92e492636ee6989c9cefda3c6caafc843 (patch) | |
tree | 51a553d6bc3bd86627f596e0958a02dfc80de179 /source/blender/blenloader | |
parent | 0f58a4c798a01975b78d17d8dc25efa4ec3a1cdf (diff) |
texture saturation option.
we'll need a do-version bump soon or this will convert 0.0 saturation to 1.0 on load.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index def7b0cdcce..d078b83c653 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -10855,6 +10855,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) Object *ob; Scene *scene; bScreen *sc; + Tex *tex; for (sc= main->screen.first; sc; sc= sc->id.next) { ScrArea *sa; @@ -10945,6 +10946,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } + for(tex= main->tex.first; tex; tex= tex->id.next) { + /* if youre picky, this isn't correct until we do a version bump + * since you could set saturation to be 0.0*/ + if(tex->saturation==0.0f) + tex->saturation= 1.0f; + } + } /* WATCH IT!!!: pointers from libdata have not been converted yet here! */ |