diff options
author | Ton Roosendaal <ton@blender.org> | 2004-10-27 12:41:51 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-10-27 12:41:51 +0400 |
commit | 369c5f03c941b9ffd331cf2d893768e4a611cc3e (patch) | |
tree | a37bf8b1c59cab69ce5492df0fc345206706c34f /source | |
parent | b7a7e5912a03508b43faf7e069bf9fc36325ec01 (diff) |
Fix for #1679
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/renderconverter/intern/convertBlenderScene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/renderconverter/intern/convertBlenderScene.c b/source/blender/renderconverter/intern/convertBlenderScene.c index 5facd9081ec..091eb978828 100644 --- a/source/blender/renderconverter/intern/convertBlenderScene.c +++ b/source/blender/renderconverter/intern/convertBlenderScene.c @@ -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; |