mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user