mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
NEW: first layer printing sequence
Change-Id: I19e39a27cf972eb859e51a334aeae8f57ee263f8 (cherry picked from commit 1369107c04668f800a338395ed3af316c32d194d)
This commit is contained in:
parent
c79e84a516
commit
5dbef1db0e
8 changed files with 404 additions and 2 deletions
|
@ -12095,6 +12095,11 @@ int Plater::select_plate_by_hover_id(int hover_id, bool right_click, bool isModi
|
|||
else
|
||||
dlg.sync_print_seq(0);
|
||||
|
||||
auto first_layer_print_seq = curr_plate->get_first_layer_print_sequence();
|
||||
if (first_layer_print_seq.empty())
|
||||
dlg.sync_first_layer_print_seq(0);
|
||||
else
|
||||
dlg.sync_first_layer_print_seq(1, curr_plate->get_first_layer_print_sequence());
|
||||
|
||||
dlg.Bind(EVT_SET_BED_TYPE_CONFIRM, [this, plate_index, &dlg](wxCommandEvent& e) {
|
||||
PartPlate *curr_plate = p->partplate_list.get_curr_plate();
|
||||
|
@ -12107,6 +12112,11 @@ int Plater::select_plate_by_hover_id(int hover_id, bool right_click, bool isModi
|
|||
}
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("select bed type %1% for plate %2% at plate side")%bt_sel %plate_index;
|
||||
|
||||
if (dlg.get_first_layer_print_seq_choice() != 0)
|
||||
curr_plate->set_first_layer_print_sequence(dlg.get_first_layer_print_seq());
|
||||
else
|
||||
curr_plate->set_first_layer_print_sequence({});
|
||||
|
||||
int ps_sel = dlg.get_print_seq_choice();
|
||||
if (ps_sel != 0)
|
||||
curr_plate->set_print_seq(PrintSequence(ps_sel - 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue