diff options
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 3ba8d8e98c1..ff6f55a777b 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -766,8 +766,10 @@ static void imb_exr_get_views(MultiPartInputFile& file, StringVector& views) static void imb_exr_insert_view_name(char *name_full, const char *passname, const char *viewname) { BLI_assert(!ELEM(name_full, passname, viewname)); + if (viewname == NULL || viewname[0] == '\0') { BLI_strncpy(name_full, passname, sizeof(((ExrChannel *)NULL)->name)); + return; } const char delims[] = {'.', '\0'}; |