Fix black bed texture if svg file (#11166)

* Fix blank bed texture if svg file

* Refresh scene once the texture compression is completed
This commit is contained in:
Noisyfox
2025-10-31 16:53:08 +08:00
committed by GitHub
parent 99863163b2
commit 05533a7fd3
5 changed files with 19 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
#include "FileHelp.hpp"
#include <boost/filesystem.hpp>
#include <boost/log/trivial.hpp>
#include <regex>
namespace Slic3r {
namespace Utils {
@@ -20,8 +19,7 @@ bool is_file_too_large(std::string file_path, bool &try_ok)
}
void slash_to_back_slash(std::string &file_path) {
std::regex regex("\\\\");
file_path = std::regex_replace(file_path, regex, "/");
std::replace(file_path.begin(), file_path.end(), '\\', '/');
}
}} // namespace Slic3r::Utils