When rendering from localview, the lamp layers were not evaluated properly
for "Layer" option in Lamps. This because localview uses layers 24-31. :)

Fix is simple; just not use localview layers for lamp while render.
This commit is contained in:
Ton Roosendaal
2004-10-27 08:41:51 +00:00
parent b7a7e5912a
commit 369c5f03c9

View File

@@ -1705,7 +1705,7 @@ void RE_add_render_lamp(Object *ob, int doshadbuf)
memcpy(lar->mtex, la->mtex, 8*4);
lar->lay= ob->lay;
lar->lay= ob->lay & 0xFFFFFF; // higher 8 bits are localview layers
lar->ld1= la->att1;
lar->ld2= la->att2;