forked from bartvdbraak/blender
Exclude only-shadow lamps to be rendered when the main render option
"shadow" is off. Bugfix 3018
This commit is contained in:
parent
f9acbb7b5d
commit
16b146d516
@ -1560,6 +1560,11 @@ void RE_add_render_lamp(Object *ob, int actual_render)
|
||||
}
|
||||
|
||||
la= ob->data;
|
||||
/* prevent only shadow from rendering light */
|
||||
if(la->mode & LA_ONLYSHADOW)
|
||||
if((R.r.mode & R_SHADOW)==0)
|
||||
return;
|
||||
|
||||
lar= (LampRen *)MEM_callocN(sizeof(LampRen),"lampren");
|
||||
R.la[R.totlamp++]= lar;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user