[FIRE-36079] Fixed saving multiple textures/photos with '/' in the filenames

master
Hecklezz 2025-11-09 16:17:43 +10:00
parent 8ddcfb1915
commit a0429c99c5
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ void LLPreviewTexture::saveTextureToFile(const std::vector<std::string>& filenam
void LLPreviewTexture::saveMultipleToFile(const std::string& file_name) void LLPreviewTexture::saveMultipleToFile(const std::string& file_name)
{ {
std::string texture_location(gSavedSettings.getString("TextureSaveLocation")); std::string texture_location(gSavedSettings.getString("TextureSaveLocation"));
std::string texture_name = file_name.empty() ? getItem()->getName() : file_name; std::string texture_name = LLDir::getScrubbedFileName(file_name.empty() ? getItem()->getName() : file_name);
std::string filepath; std::string filepath;
S32 i = 0; S32 i = 0;