- forgot to commit this file for fix several days ago which fixed

only_shadow rendering...
This commit is contained in:
Ton Roosendaal
2004-01-23 22:03:42 +00:00
parent 66525b1b6f
commit 1b3145c575

View File

@@ -1806,6 +1806,12 @@ void RE_add_render_lamp(Object *ob, int doshadbuf)
RE_initshadowbuf(lar, ob->obmat);
}
}
/* to make sure we can check ray shadow easily in the render code */
if(lar->mode & LA_SHAD_RAY) {
if( (R.r.mode & R_RAYTRACE)==0)
lar->mode &= ~LA_SHAD_RAY;
}
lar->org= MEM_dupallocN(lar);
}