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

@@ -39,6 +39,7 @@
#include "Tab.hpp"
#include "format.hpp"
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/Utils/FileHelp.hpp"
#include <imgui/imgui_internal.h>
#include <wx/dcgraph.h>
using boost::optional;
@@ -5563,8 +5564,10 @@ void PartPlateList::update_logo_texture_filename(const std::string &texture_file
if (!texture_filename.empty() && !check_texture(texture_filename)) {
m_logo_texture_filename = "";
BOOST_LOG_TRIVIAL(error) << "Unable to load bed texture: " << texture_filename;
} else
} else {
m_logo_texture_filename = texture_filename;
Utils::slash_to_back_slash(m_logo_texture_filename);
}
}
/*slice related functions*/