Asset system: use native slash for AssetLibraryIndex.indices_base_path

When constructing run-time paths native slashes are preferred as WIN32
doesn't have full support for forward slashes in paths.
It can also cause problems when performing exact matches on paths
which are normalized, where normalizing one of the paths makes
comparisons fail.

Using the system native slash would have avoided T103385.
This commit is contained in:
Campbell Barton 2023-01-25 09:53:38 +11:00
parent b8cb962fb2
commit b51034b9ca
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ struct AssetLibraryIndex {
BLI_path_append(index_path, sizeof(index_path), "asset-library-indices");
std::stringstream ss;
ss << std::setfill('0') << std::setw(16) << std::hex << hash() << "/";
ss << std::setfill('0') << std::setw(16) << std::hex << hash() << SEP_STR;
BLI_path_append(index_path, sizeof(index_path), ss.str().c_str());
indices_base_path = std::string(index_path);