Fix for bug #8326: SSS + fields crashed.

This commit is contained in:
Brecht Van Lommel 2008-02-22 10:43:40 +00:00
parent 4edf886c58
commit ac5caa8536

@ -848,7 +848,7 @@ static void sss_create_tree_mat(Render *re, Material *mat)
{
SSSPoints *p;
RenderResult *rr;
ListBase layers, points;
ListBase points;
float (*co)[3] = NULL, (*color)[3] = NULL, *area = NULL;
int totpoint = 0, osa, osaflag, partsdone;
@ -862,12 +862,10 @@ static void sss_create_tree_mat(Render *re, Material *mat)
/* do SSS preprocessing render */
rr= re->result;
layers= rr->layers;
osa= re->osa;
osaflag= re->r.mode & R_OSA;
partsdone= re->i.partsdone;
rr->layers.first= rr->layers.last= NULL;
re->osa= 0;
re->r.mode &= ~R_OSA;
re->sss_points= &points;
@ -882,7 +880,6 @@ static void sss_create_tree_mat(Render *re, Material *mat)
re->i.partsdone= partsdone;
re->sss_mat= NULL;
re->sss_points= NULL;
rr->layers= layers;
re->osa= osa;
if (osaflag) re->r.mode |= R_OSA;