Version patch for 2.41 saved files that had unsupported passes set.

Settings for unsupported passes are cleared now.
This commit is contained in:
Ton Roosendaal 2006-06-27 08:53:39 +00:00
parent b0193d3798
commit ba7af683ae

@ -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 */