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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-02-11 18:43:31 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-02-11 18:43:31 +0300
commitd98603129ca30aabe29f17f28f4ac72dbc0ca4ac (patch)
tree0216329ae9aaba7706eedc1f8aa25a35107aa16e /source/blender/blenloader
parent4746fbd8ce9edf4c898fb690ffff0c664636d769 (diff)
Added an option "Cast Approximate" to control if a material should cast
shadow when using approximate AO, separate from "Traceable".
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index af9df4b00ba..175851266ed 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -10563,10 +10563,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
}
}
- /* put 2.50 compatibility code here until next subversion bump */
- {
+ if (main->versionfile < 250 || (main->versionfile == 250 && main->subversionfile < 17)) {
Scene *sce;
Sequence *seq;
+ Material *ma;
/* initialize to sane default so toggling on border shows something */
for(sce = main->scene.first; sce; sce = sce->id.next) {
@@ -10587,6 +10587,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
SEQ_END
}
+ for(ma = main->mat.first; ma; ma=ma->id.next)
+ if(ma->mode & MA_TRACEBLE)
+ ma->shade_flag |= MA_APPROX_OCCLUSION;
+
/* sequencer changes */
{
bScreen *screen;
@@ -10621,6 +10625,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
} /* sequencer changes */
}
+ /* put 2.50 compatibility code here until next subversion bump */
+ {
+ }
+
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */
/* WATCH IT 2!: Userdef struct init has to be in editors/interface/resources.c! */