New: rendering in background mode (blender -b) now prints a percentage to
indicate scanlines being in progress. For motion blur frames it works too. Bug fix: in background render it accidentally tried to free a sound pointer that wasn't set. (caused by own commit of three days ago). Fix: rendering motion blur in forground prints correct sample # in info- header again.
This commit is contained in:
@@ -666,7 +666,7 @@ static void renderview_progress_display_cb(int y1, int y2, int w, int h, unsigne
|
||||
|
||||
|
||||
/* callback for print info in top header in interface */
|
||||
static void printrenderinfo_cb(double time, int sample)
|
||||
static void printrenderinfo_cb(double time, int sample, int blur)
|
||||
{
|
||||
extern int mem_in_use;
|
||||
float megs_used_memory= mem_in_use/(1024.0*1024.0);
|
||||
@@ -679,8 +679,11 @@ static void printrenderinfo_cb(double time, int sample)
|
||||
if (R.r.mode & R_FIELDS) {
|
||||
spos+= sprintf(spos, "Field %c ", (R.flag&R_SEC_FIELD)?'B':'A');
|
||||
}
|
||||
if (blur!=-1) {
|
||||
spos+= sprintf(spos, "Blur: %d ", blur);
|
||||
}
|
||||
if (sample!=-1) {
|
||||
spos+= sprintf(spos, "Sample: %d ", sample);
|
||||
spos+= sprintf(spos, "Sample: %d ", sample);
|
||||
}
|
||||
|
||||
screen_draw_info_text(G.curscreen, str);
|
||||
|
||||
Reference in New Issue
Block a user