ENH:After re-importing the multi-plate Gcode.3mf file, sending all plates to the printer results in information loss

jira: [STUDIO-11531]

Change-Id: Icfbf56ac1f6610f70c3ed192f765e3381ad8ddb6
(cherry picked from commit fcb4ca7a412dfc7c0897b96a3b4c528e6936c297)
This commit is contained in:
milk
2025-05-08 15:59:04 +08:00
committed by Noisyfox
parent 8065f11b60
commit 7c28b5ae52
4 changed files with 43 additions and 17 deletions

View File

@@ -164,8 +164,15 @@ void SendJob::process(Ctl &ctl)
params.dev_id = m_dev_id;
params.project_name = m_project_name + ".gcode.3mf";
params.preset_name = wxGetApp().preset_bundle->prints.get_selected_preset_name();
params.filename = job_data._3mf_path.string();
if (wxGetApp().plater()->using_exported_file())
params.filename = wxGetApp().plater()->get_3mf_filename();
else
params.filename = job_data._3mf_path.string();
params.config_filename = job_data._3mf_config_path.string();
params.plate_index = curr_plate_idx;
params.ams_mapping = this->task_ams_mapping;
params.connection_type = this->connection_type;