Fix T102893: Assert Opening File Browser (Win32)

Fix debug assert opening File Browser on Windows platform.

See D16672 for more details.

Differential Revision: https://developer.blender.org/D16672

Reviewed by Julian Eisel
This commit is contained in:
Harley Acheson 2022-12-01 12:25:49 -08:00
parent 25501983bb
commit 4c1b250e17
Notes: blender-bot 2023-02-14 08:35:51 +01:00
Referenced by issue #102893, Assert on opening the file browser
1 changed files with 1 additions and 1 deletions

View File

@ -2942,7 +2942,7 @@ static char *current_relpath_append(const FileListReadJob *job_params, const cha
return BLI_strdup(filename);
}
BLI_assert(relbase[strlen(relbase) - 1] == SEP);
BLI_assert(ELEM(relbase[strlen(relbase) - 1], SEP, ALTSEP));
BLI_assert(BLI_path_is_rel(relbase));
char relpath[FILE_MAX_LIBEXTRA];