update slic3r

This commit is contained in:
QIDI TECH
2025-08-04 16:30:53 +08:00
parent 8d4d60ec48
commit 661b112a68
287 changed files with 22250 additions and 7322 deletions

View File

@@ -18,7 +18,7 @@
#include <vector>
#include <algorithm>
#include <thread>
#include "FileHelp.hpp"
#define STB_DXT_IMPLEMENTATION
#include "stb_dxt/stb_dxt.h"
@@ -171,12 +171,13 @@ bool GLTexture::load_from_file(const std::string& filename, bool use_mipmaps, EC
bool GLTexture::load_from_svg_file(const std::string& filename, bool use_mipmaps, bool compress, bool apply_anisotropy, unsigned int max_size_px)
{
reset();
if (!boost::filesystem::exists(filename))
auto svg_file = filename;
Utils::slash_to_back_slash(svg_file);
if (!boost::filesystem::exists(svg_file))
return false;
if (boost::algorithm::iends_with(filename, ".svg"))
return load_from_svg(filename, use_mipmaps, compress, apply_anisotropy, max_size_px);
if (boost::algorithm::iends_with(svg_file, ".svg"))
return load_from_svg(svg_file, use_mipmaps, compress, apply_anisotropy, max_size_px);
else
return false;
}
@@ -1074,5 +1075,14 @@ GLModel& GLTexture::get_model_for_render_image()
return s_model_for_render_image;
}
BackgroundTexture::Metadata::Metadata()
: filename("")
, left(0)
, right(0)
, top(0)
, bottom(0)
{
}
} // namespace GUI
} // namespace Slic3r