Fix multiview issue: play animation crashes
We need to avoid passing a NULL string here, and also we need to pass the correct suffix we used to pass view string directly which is probably not what we want.
This commit is contained in:
parent
a18e5d6a67
commit
d6d4d5e094
|
@ -121,8 +121,14 @@ static void rna_Scene_update_tagged(Scene *scene)
|
|||
|
||||
static void rna_SceneRender_get_frame_path(RenderData *rd, int frame, int preview, const char *view, char *name)
|
||||
{
|
||||
const char *suffix = BKE_scene_multiview_view_suffix_get(rd, view);
|
||||
|
||||
/* avoid NULL pointer */
|
||||
if (!suffix)
|
||||
suffix = "";
|
||||
|
||||
if (BKE_imtype_is_movie(rd->im_format.imtype)) {
|
||||
BKE_movie_filepath_get(name, rd, preview != 0, view);
|
||||
BKE_movie_filepath_get(name, rd, preview != 0, suffix);
|
||||
}
|
||||
else {
|
||||
BKE_image_path_from_imformat(
|
||||
|
|
Loading…
Reference in New Issue