New: rendering in background mode (blender -b) now prints a percentage to
[blender.git] / source / blender / render / intern / source / initrender.c
index e282cee18c2b8887d97a1192926e3c991427a16e..1b61a28af20a18b7468de39616d914ad274f0d39 100644 (file)
@@ -860,7 +860,10 @@ void oldRenderLoop(void)  /* here the PART and FIELD loops */
                                R.rectot= (unsigned int *)MEM_callocN(sizeof(int)*R.rectx*R.recty, "rectot");
                                R.rectz =  (unsigned int *)MEM_mallocN(sizeof(int)*R.rectx*R.recty, "rectz");
 
                                R.rectot= (unsigned int *)MEM_callocN(sizeof(int)*R.rectx*R.recty, "rectot");
                                R.rectz =  (unsigned int *)MEM_mallocN(sizeof(int)*R.rectx*R.recty, "rectz");
 
-                               if(R.r.mode & R_MBLUR) RE_local_printrenderinfo(0.0, R.osa - blur);
+                               if(R.r.mode & R_MBLUR) {
+                                       RE_local_printrenderinfo(0.0, R.osa - blur);
+                                       if(G.background && blur<R.osa) printf("\n"); // newline for percentage print
+                               }
                                else RE_local_printrenderinfo(0.0, -1);
 
                                /* choose render pipeline type, and whether or not to use the */
                                else RE_local_printrenderinfo(0.0, -1);
 
                                /* choose render pipeline type, and whether or not to use the */