diff options
author | Ton Roosendaal <ton@blender.org> | 2005-12-06 18:02:13 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-12-06 18:02:13 +0300 |
commit | 898cbe370e0403da39347d91fc40f7a4a38aeaf2 (patch) | |
tree | a4f6be71b57985199a3a15687f8506489f10b59c /source/blender/renderconverter/intern/convertBlenderScene.c | |
parent | 2f716483a9af9a9972f08f2c89f2e468afa601bc (diff) |
Orange:
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.
Diffstat (limited to 'source/blender/renderconverter/intern/convertBlenderScene.c')
-rw-r--r-- | source/blender/renderconverter/intern/convertBlenderScene.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/renderconverter/intern/convertBlenderScene.c b/source/blender/renderconverter/intern/convertBlenderScene.c index a4dbad1000a..776d656abaf 100644 --- a/source/blender/renderconverter/intern/convertBlenderScene.c +++ b/source/blender/renderconverter/intern/convertBlenderScene.c @@ -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; |