From 98c3421f21eb0c079014bcc4a1a2dcd828458a78 Mon Sep 17 00:00:00 2001 From: Diego Hernan Borghetti Date: Tue, 29 Apr 2008 13:33:46 -0300 Subject: [PATCH] Fix for octree filling print when rendering, the counter was per object, now counts all faces as it did before. Author: Brecht Van Lommel SVN revision: r14614 Date: 2008-04-29 12:19:58 -0300 (Tue, 29 Apr 2008) --- 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 72a830a..6ee1f76 100644 --- a/source/blender/render/intern/source/rayshade.c +++ b/source/blender/render/intern/source/rayshade.c @@ -101,7 +101,7 @@ void makeraytree(Render *re) VlakRen *vlr= NULL; float min[3], max[3]; double lasttime= PIL_check_seconds_timer(); - int v, totface = 0; + int v, totv = 0, totface = 0; INIT_MINMAX(min, max); @@ -131,7 +131,7 @@ void makeraytree(Render *re) return; } - for(v=0; vtotvlak; v++) { + for(v=0; vtotvlak; v++, totv++) { if((v & 255)==0) { double time= PIL_check_seconds_timer(); @@ -140,7 +140,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; -- 2.11.4.GIT