[Bf-blender-cvs] [4c1b250e172] master: Fix T102893: Assert Opening File Browser (Win32)

Harley Acheson noreply at git.blender.org
Thu Dec 1 21:27:10 CET 2022


Commit: 4c1b250e172a99c44c7da20f20ea38970ec40340
Author: Harley Acheson
Date:   Thu Dec 1 12:25:49 2022 -0800
Branches: master
https://developer.blender.org/rB4c1b250e172a99c44c7da20f20ea38970ec40340

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

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

M	source/blender/editors/space_file/filelist.cc

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

diff --git a/source/blender/editors/space_file/filelist.cc b/source/blender/editors/space_file/filelist.cc
index 3374da082d8..44bfa7fcbaf 100644
--- a/source/blender/editors/space_file/filelist.cc
+++ b/source/blender/editors/space_file/filelist.cc
@@ -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];



More information about the Bf-blender-cvs mailing list