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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-03 08:09:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-03 08:09:07 +0300
commita18e1043e87cffb63ef2e6818315431efea17496 (patch)
treeeaa7d5be9421f2329e3d9502cb16b37e10cd0d6b /source/blender/blenloader
parent385c5f07553b2b5c0dc18d5e6d0862078c6769f8 (diff)
solidify material offsets for 2nd surface and rim faces.
run do_versions() on use_rim_material option so Sintel's jacket loads ok. (request from Bassam)
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 4e00b888c90..8d1a77d1a2b 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -11484,6 +11484,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
{
bScreen *sc;
Brush *brush;
+ Object *ob;
/* redraws flag in SpaceTime has been moved to Screen level */
for (sc = main->screen.first; sc; sc= sc->id.next) {
@@ -11498,6 +11499,20 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
if(brush->height == 0)
brush->height= 0.4;
}
+
+ /* replace 'rim material' option for in offset*/
+ for(ob = main->object.first; ob; ob = ob->id.next) {
+ ModifierData *md;
+ for(md= ob->modifiers.first; md; md= md->next) {
+ if (md->type == eModifierType_Solidify) {
+ SolidifyModifierData *smd = (SolidifyModifierData *)md;
+ if(smd->flag & MOD_SOLIDIFY_RIM_MATERIAL) {
+ smd->mat_ofs_rim= 1;
+ smd->flag &= ~MOD_SOLIDIFY_RIM_MATERIAL;
+ }
+ }
+ }
+ }
}
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */