diff --git a/source/blender/asset_system/intern/utils.cc b/source/blender/asset_system/intern/utils.cc index 8383395f934..7e50ef48d11 100644 --- a/source/blender/asset_system/intern/utils.cc +++ b/source/blender/asset_system/intern/utils.cc @@ -25,6 +25,7 @@ std::string normalize_directory_path(StringRef directory) directory.data(), /* + 1 for null terminator. */ std::min(directory.size() + 1, int64_t(sizeof(dir_normalized)))); + BLI_path_slash_native(dir_normalized); BLI_path_normalize_dir(dir_normalized, sizeof(dir_normalized)); return std::string(dir_normalized); } diff --git a/source/blender/asset_system/intern/utils.hh b/source/blender/asset_system/intern/utils.hh index a04600e0522..f1b6f30b911 100644 --- a/source/blender/asset_system/intern/utils.hh +++ b/source/blender/asset_system/intern/utils.hh @@ -14,7 +14,7 @@ namespace blender::asset_system::utils { /** * Returns a normalized directory path with a trailing slash, and a maximum length of #PATH_MAX. - * Slashes are not converted to native format (they probably should be though?). + * Slashes are converted to native format. */ std::string normalize_directory_path(StringRef directory);