Fix #117674: stereoscopy rendering with overwrite disabled broken

This would still overwrite (even though frames existed).

Mistake in 6b9a500a3a.

char "filepath" was already in use/shadowed, instead use "filepath_view" to
correctly glue path/suffix together (as done already a bit below for the
R_TOUCH case).

Pull Request: https://projects.blender.org/blender/blender/pulls/117696
This commit is contained in:
Philipp Oeser 2024-02-01 09:50:48 +01:00 committed by Philipp Oeser
parent 2d2b087fcf
commit 5e2bad1589
1 changed files with 4 additions and 5 deletions

View File

@ -2403,18 +2403,17 @@ void RE_RenderAnim(Render *re,
}
else {
bool is_skip = false;
char filepath[FILE_MAX];
char filepath_view[FILE_MAX];
LISTBASE_FOREACH (SceneRenderView *, srv, &scene->r.views) {
if (!BKE_scene_multiview_is_render_view_active(&scene->r, srv)) {
continue;
}
BKE_scene_multiview_filepath_get(srv, filepath, filepath);
if (BLI_exists(filepath)) {
BKE_scene_multiview_filepath_get(srv, filepath, filepath_view);
if (BLI_exists(filepath_view)) {
is_skip = true;
printf("skipping existing frame \"%s\" for view \"%s\"\n", filepath, srv->name);
printf("skipping existing frame \"%s\" for view \"%s\"\n", filepath_view, srv->name);
}
}