From ba7af683ae4ae3cc52631930bd1fe727e8fc879d Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 27 Jun 2006 08:53:39 +0000 Subject: [PATCH] Version patch for 2.41 saved files that had unsupported passes set. Settings for unsupported passes are cleared now. --- source/blender/blenloader/intern/readfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index d109a4fcaf6..8d22a2b2bf4 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5417,9 +5417,11 @@ static void do_versions(FileData *fd, Library *lib, Main *main) else { SceneRenderLayer *srl; /* new layer flag for sky, was default for solid */ - for(srl= sce->r.layers.first; srl; srl= srl->next) + for(srl= sce->r.layers.first; srl; srl= srl->next) { if(srl->layflag & SCE_LAY_SOLID) srl->layflag |= SCE_LAY_SKY; + srl->passflag &= (SCE_PASS_COMBINED|SCE_PASS_Z|SCE_PASS_NORMAL|SCE_PASS_VECTOR); + } } /* node version changes */