NEW:modify svg name

jira: STUDIO-13919
Change-Id: I8a7ae0df8c4203c8f00a0c0da83e98c1ec7be605
(cherry picked from commit 926809b06fe15e486f24c671af576d0a4dd13c37)
This commit is contained in:
zhou.xu
2025-09-12 12:14:26 +08:00
committed by Noisyfox
parent 833de25b29
commit 11345d6b54
15 changed files with 186 additions and 0 deletions

View File

@@ -6236,6 +6236,14 @@ void PartPlateList::init_bed_type_info()
for (int i = 0; i < bed_types.size(); i++) {
m_allow_bed_type_in_double_nozzle[bed_types[i]] = true;
}
} else {
if (bottom_texture_end_name.size() > 0) {
st_part2.update_file("bbl_bed_st_bottom_" + bottom_texture_end_name + ".svg");
pc_part2.update_file("bbl_bed_pc_bottom_" + bottom_texture_end_name + ".svg");
ep_part2.update_file("bbl_bed_ep_bottom_" + bottom_texture_end_name + ".svg");
pei_part2.update_file("bbl_bed_pei_bottom_" + bottom_texture_end_name + ".svg");
pte_part2.update_file("bbl_bed_pte_bottom_" + bottom_texture_end_name + ".svg");
}
}
for (size_t i = 0; i < btCount; i++) {

View File

@@ -667,6 +667,9 @@ public:
this->filename = part.filename;
this->texture = part.texture;
}
void update_file(std::string file) {
filename = file;
}
void update_buffer();
void reset();