From 17d83bfefbf4376916c7acdc58262fb6b37ac636 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 29 Apr 2008 15:19:58 +0000 Subject: [PATCH] Fix for octree filling print when rendering, the counter was per object, now counts all faces as it did before. --- source/blender/render/intern/source/rayshade.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/render/intern/source/rayshade.c b/source/blender/render/intern/source/rayshade.c index 7ffed72329e..6aee1d2a883 100644 --- a/source/blender/render/intern/source/rayshade.c +++ b/source/blender/render/intern/source/rayshade.c @@ -117,7 +117,7 @@ void makeraytree(Render *re) VlakRen *vlr= NULL; float min[3], max[3], co1[3], co2[3], co3[3], co4[3]; double lasttime= PIL_check_seconds_timer(); - int v, totface = 0; + int v, totv = 0, totface = 0; INIT_MINMAX(min, max); @@ -175,7 +175,7 @@ void makeraytree(Render *re) if(re->excludeob && obr->ob == re->excludeob) continue; - for(v=0; vtotvlak; v++) { + for(v=0; vtotvlak; v++, totv++) { if((v & 255)==0) { double time= PIL_check_seconds_timer(); @@ -184,7 +184,7 @@ void makeraytree(Render *re) break; if(time-lasttime>1.0f) { char str[32]; - sprintf(str, "Filling Octree: %d", v); + sprintf(str, "Filling Octree: %d", totv); re->i.infostr= str; re->stats_draw(&re->i); re->i.infostr= NULL;