[Bf-blender-cvs] [2b606dc] multiview: Filepath should include view even when rendering one view (if multiview is on)

Dalai Felinto noreply at git.blender.org
Tue Sep 2 11:55:05 CEST 2014


Commit: 2b606dc130a998f20eadd4a458da1863fd874653
Author: Dalai Felinto
Date:   Tue Sep 2 11:41:50 2014 +0200
Branches: multiview
https://developer.blender.org/rB2b606dc130a998f20eadd4a458da1863fd874653

Filepath should include view even when rendering one view (if multiview is on)

 When multiview is not used the filepath is as usual (e.g., Image.jpg).
 When multiview is on, even if only one view is enabled the view is incorporated
 into the file name (e.g., Image_L.jpg). That allows for the user to re-render
 individual images.

===================================================================

M	source/blender/render/intern/source/pipeline.c

===================================================================

diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c
index 8f2399e..e190939 100644
--- a/source/blender/render/intern/source/pipeline.c
+++ b/source/blender/render/intern/source/pipeline.c
@@ -3028,7 +3028,11 @@ void RE_RenderFreestyleExternal(Render *re)
 }
 #endif
 
-
+/* When multiview is not used the filepath is as usual (e.g., Image.jpg).
+ * When multiview is on, even if only one view is enabled the view is incorporated
+ * into the file name (e.g., Image_L.jpg). That allows for the user to re-render
+ * individual views.
+ **/
 static void save_image_get_view_filepath(Scene *scene, const char *filepath, RenderView *rv,
                                          char *r_filepath, char *r_view)
 {
@@ -3088,9 +3092,7 @@ bool RE_WriteRenderViewsImage(ReportList *reports, RenderResult *rr, Scene *scen
 		BLI_strncpy(filepath, name, sizeof(filepath));
 
 		for (view_id = 0, rv = (RenderView *) rr->views.first; rv; rv = rv->next, view_id++) {
-			if (!is_mono) {
-				save_image_get_view_filepath(scene, filepath, rv, name, view);
-			}
+			save_image_get_view_filepath(scene, filepath, rv, name, view);
 
 			if (rd->im_format.imtype == R_IMF_IMTYPE_MULTILAYER) {
 				RE_WriteRenderResult(reports, rr, name, &rd->im_format, false, view);




More information about the Bf-blender-cvs mailing list