Pointer was checked before being set... but it refused to crash on me! For
everyone else it crashed on rendering.
Thanks Toni for the bughunt.
This commit is contained in:
Ton Roosendaal
2005-12-06 15:02:13 +00:00
parent 2f716483a9
commit 898cbe370e

View File

@@ -1670,7 +1670,7 @@ static void area_lamp_vectors(LampRen *lar)
/* If lar takes more lamp data, the decoupling will be better. */
void RE_add_render_lamp(Object *ob, int actual_render)
{
Lamp *la;
Lamp *la= ob->data;
LampRen *lar;
GroupObject *go;
float mat[4][4], hoek, xn, yn;
@@ -1696,8 +1696,6 @@ void RE_add_render_lamp(Object *ob, int actual_render)
MTC_Mat3CpyMat4(lar->mat, mat);
MTC_Mat3CpyMat4(lar->imat, ob->imat);
la= ob->data;
lar->bufsize = la->bufsize;
lar->samp = la->samp;
lar->soft = la->soft;