FIX:add bottom texture

jira: STUDIO-11342
Change-Id: I69fd573b4d7b05135d5f280cf42d367421664cff
(cherry picked from commit 645f93fac732b8794aa1e99301bfe179a74915a7)
(cherry picked from commit 803a1dffde0f66c3076ae4fc80d4b821f34b03fc)
This commit is contained in:
zhou.xu
2025-04-09 16:34:34 +08:00
committed by Noisyfox
parent bb3f59e18f
commit 2ba649d7ef
6 changed files with 85 additions and 10 deletions

View File

@@ -4916,6 +4916,25 @@ const VendorProfile::PrinterModel *Plater::get_curr_printer_model()
return nullptr;
}
std::map<std::string, std::string> Plater::get_bed_texture_maps()
{
auto pm = get_curr_printer_model();
if (pm) {
std::map<std::string, std::string> maps;
if (pm->bottom_texture_end_name.size() > 0) {
maps["bottom_texture_end_name"] = pm->bottom_texture_end_name;
}
if (pm->bottom_texture_rect.size() > 0) {
maps["bottom_texture_rect"] = pm->bottom_texture_rect;
}
if (pm->middle_texture_rect.size() > 0) {
maps["middle_texture_rect"] = pm->middle_texture_rect;
}
return maps;
}
return {};
}
wxColour Plater::get_next_color_for_filament()
{
static int curr_color_filamenet = 0;