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:
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index d100e35f42f..8123aa22d42 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4236,6 +4236,7 @@ static void do_versions(Main *main)
}
if(main->versionfile <= 233) {
Material *ma= main->mat.first;
+ Object *ob= main->object.first;
while(ma) {
if(ma->rampfac_col==0.0) ma->rampfac_col= 1.0;
@@ -4243,6 +4244,12 @@ static void do_versions(Main *main)
if(ma->pr_lamp==0) ma->pr_lamp= 3;
ma= ma->id.next;
}
+
+ /* this should have been done loooong before! */
+ while(ob) {
+ if(ob->ipowin==0) ob->ipowin= ID_OB;
+ ob= ob->id.next;
+ }
}
/* don't forget to set version number in blender.c! */