From 16b146d5168b9e2d933a6e54e7144491bb87407b Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 12 Sep 2005 17:43:48 +0000 Subject: [PATCH] Exclude only-shadow lamps to be rendered when the main render option "shadow" is off. Bugfix 3018 --- source/blender/renderconverter/intern/convertBlenderScene.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/renderconverter/intern/convertBlenderScene.c b/source/blender/renderconverter/intern/convertBlenderScene.c index b6fb272036e..9fdbfd5a7bb 100644 --- a/source/blender/renderconverter/intern/convertBlenderScene.c +++ b/source/blender/renderconverter/intern/convertBlenderScene.c @@ -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;