mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-20 17:32:26 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user