mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-27 09:59:48 -07:00
Fix: Reset object settings not working for plate's Skirt Start Angle and Other Layers Sequence (#10482)
* init
This commit is contained in:
parent
15a835af20
commit
099dbb4046
3 changed files with 10 additions and 0 deletions
|
|
@ -235,6 +235,11 @@ void PartPlate::reset_bed_type()
|
|||
m_config.erase("curr_bed_type");
|
||||
}
|
||||
|
||||
void PartPlate::reset_skirt_start_angle()
|
||||
{
|
||||
m_config.erase("skirt_start_angle");
|
||||
}
|
||||
|
||||
void PartPlate::set_print_seq(PrintSequence print_seq)
|
||||
{
|
||||
std::string print_seq_key = "print_sequence";
|
||||
|
|
|
|||
|
|
@ -227,6 +227,9 @@ public:
|
|||
BedType get_bed_type(bool load_from_project = false) const;
|
||||
void set_bed_type(BedType bed_type);
|
||||
void reset_bed_type();
|
||||
|
||||
void reset_skirt_start_angle();
|
||||
|
||||
DynamicPrintConfig* config() { return &m_config; }
|
||||
|
||||
// set print sequence per plate
|
||||
|
|
|
|||
|
|
@ -2930,8 +2930,10 @@ void TabPrintPlate::reset_model_config()
|
|||
}
|
||||
auto plate = dynamic_cast<PartPlate*>(plate_item.first);
|
||||
plate->reset_bed_type();
|
||||
plate->reset_skirt_start_angle();
|
||||
plate->set_print_seq(PrintSequence::ByDefault);
|
||||
plate->set_first_layer_print_sequence({});
|
||||
plate->set_other_layers_print_sequence({});
|
||||
plate->set_spiral_vase_mode(false, true);
|
||||
notify_changed(plate_item.first);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue