patch [#37219] RenderParts.partsdone is not a boolean, but a counter

from Lawrence D'Oliveiro (ldo)
This commit is contained in:
2013-10-28 23:59:28 +00:00
parent 0177d555c7
commit 22396540d7
2 changed files with 2 additions and 2 deletions

View File

@@ -555,7 +555,7 @@ void RE_parts_init(Render *re, int do_crop)
/* this is render info for caller, is not reset when parts are freed! */
re->i.totpart = 0;
re->i.curpart = 0;
re->i.partsdone = FALSE;
re->i.partsdone = 0;
/* just for readable code.. */
xminb = re->disprect.xmin;

View File

@@ -878,7 +878,7 @@ static void sss_create_tree_mat(Render *re, Material *mat)
re->r.mode &= ~R_OSA;
re->sss_points= &points;
re->sss_mat= mat;
re->i.partsdone = FALSE;
re->i.partsdone = 0;
if (!(re->r.scemode & (R_BUTS_PREVIEW|R_VIEWPORT_PREVIEW)))
re->result= NULL;