mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
Publish per-extruder process settings in the Publish 3MF dialog (#16971)
* Publish per-extruder process settings in the Publish 3MF dialog Process settings that differ per extruder (speeds, accelerations, jerk, top surface flow ratio) were published as one row showing extruder 1 and exported as the whole vector, so the dialog could not select an extruder's value and checking the row shipped every extruder's value. - Dialog: one tab per extruder, as in the Printer section. On a multi-extruder printer the tabs sit behind a MultiSwitchButton below the page tabs; each row is keyed "key#N" and reads the uncompacted config. Pre-check follows each row's own key. Single-extruder printers get one "Extruder" page tab. - Export: "key#N" process keys are masked to the checked slot, as printer keys already are. - Import: the file carries the author's print extruder layout. Process keys map by extruder number and nozzle type on multi-extruder receivers. Single-extruder receivers keep the positional import. Files without the layout keep the positional import. - Reopening a file without the layout: its "key#N" process entries select that setting on every extruder, so re-publishing keeps the values it had. - MultiSwitchButton gains Unselect(), which clears the selection without an event. * Fixes clang-tidy * Fix per-extruder masking test to use the nullable outer_wall_speed type outer_wall_speed is ConfigOptionFloatsNullable, so the ConfigOptionFloats casts in the test returned null and the test segfaulted.
This commit is contained in:
1 parent
3a0517831f
commit
aa3291b380
15 files changed
+342
-65
No files matched your search
@@ -2021,8 +2021,10 @@ void MainFrame::publish_project()
|
||||
// published 3MF); a null pointer means "fresh", keeping the dirty defaults.
|
||||
std::vector<std::string> pending_keys;
|
||||
std::vector<Slic3r::PublishedMaterialEntry> pending_material;
|
||||
const bool has_prior = m_plater->get_pending_published(pending_keys, pending_material);
|
||||
PublishSettingsDialog dlg(this, has_prior ? &pending_keys : nullptr, has_prior ? &pending_material : nullptr);
|
||||
bool pending_legacy_process = false;
|
||||
const bool has_prior = m_plater->get_pending_published(pending_keys, pending_material, pending_legacy_process);
|
||||
PublishSettingsDialog dlg(this, has_prior ? &pending_keys : nullptr, has_prior ? &pending_material : nullptr,
|
||||
pending_legacy_process);
|
||||
if (dlg.ShowModal() != wxID_OK)
|
||||
return;
|
||||
m_plater->set_pending_published(dlg.GetPublishedKeys(), dlg.GetPublishedMaterialKeys());
|
||||
|
||||
Reference in new issue
Block a user