FIX: pa pattern gcode display after loading new project file

jira: STUDIO-13942
Change-Id: Ice3d1d36846f972775cda0bca8d83a8dc0797b48
(cherry picked from commit e06c582f285dee49f717531cc12077be08848470)
This commit is contained in:
zhimin.zeng
2025-08-19 20:40:21 +08:00
committed by Noisyfox
parent f46c456a49
commit f33fe05101

View File

@@ -10949,6 +10949,9 @@ SLAPrint& Plater::sla_print() { return p->sla_print; }
int Plater::new_project(bool skip_confirm, bool silent, const wxString& project_name)
{
model().calib_pa_pattern.reset(nullptr);
model().plates_custom_gcodes.clear();
bool transfer_preset_changes = false;
// BBS: save confirm
auto check = [this,&transfer_preset_changes](bool yes_or_no) {
@@ -11022,6 +11025,9 @@ LoadType determine_load_type(std::string filename, std::string override_setting
void Plater::load_project(wxString const& filename2,
wxString const& originfile)
{
model().calib_pa_pattern.reset(nullptr);
model().plates_custom_gcodes.clear();
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "filename is: " << filename2 << "and originfile is: " << originfile;
BOOST_LOG_TRIVIAL(info) << __FUNCTION__;
auto filename = filename2;