Cycles: progress printing in background mode, print finished at the end and

avoid duplicate prints.
This commit is contained in:
Brecht Van Lommel
2011-10-30 10:12:34 +00:00
parent 238f3a7d34
commit bb379c06e9
3 changed files with 21 additions and 4 deletions

View File

@@ -170,8 +170,10 @@ void Session::run_gpu()
if(params.background) {
/* if no work left and in background mode, we can stop immediately */
if(no_tiles)
if(no_tiles) {
progress.set_status("Finished");
break;
}
}
else {
/* if in interactive mode, and we are either paused or done for now,
@@ -305,8 +307,10 @@ void Session::run_cpu()
if(params.background) {
/* if no work left and in background mode, we can stop immediately */
if(no_tiles)
if(no_tiles) {
progress.set_status("Finished");
break;
}
}
else {
/* if in interactive mode, and we are either paused or done for now,