Exclude only-shadow lamps to be rendered when the main render option

"shadow" is off.
Bugfix 3018
This commit is contained in:
Ton Roosendaal 2005-09-12 17:43:48 +00:00
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;