mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix: Reset object settings not working for plate's Skirt Start Angle and Other Layers Sequence (#10482)
* init
This commit is contained in:
@@ -235,6 +235,11 @@ void PartPlate::reset_bed_type()
|
|||||||
m_config.erase("curr_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)
|
void PartPlate::set_print_seq(PrintSequence print_seq)
|
||||||
{
|
{
|
||||||
std::string print_seq_key = "print_sequence";
|
std::string print_seq_key = "print_sequence";
|
||||||
|
|||||||
@@ -227,6 +227,9 @@ public:
|
|||||||
BedType get_bed_type(bool load_from_project = false) const;
|
BedType get_bed_type(bool load_from_project = false) const;
|
||||||
void set_bed_type(BedType bed_type);
|
void set_bed_type(BedType bed_type);
|
||||||
void reset_bed_type();
|
void reset_bed_type();
|
||||||
|
|
||||||
|
void reset_skirt_start_angle();
|
||||||
|
|
||||||
DynamicPrintConfig* config() { return &m_config; }
|
DynamicPrintConfig* config() { return &m_config; }
|
||||||
|
|
||||||
// set print sequence per plate
|
// set print sequence per plate
|
||||||
|
|||||||
@@ -2930,8 +2930,10 @@ void TabPrintPlate::reset_model_config()
|
|||||||
}
|
}
|
||||||
auto plate = dynamic_cast<PartPlate*>(plate_item.first);
|
auto plate = dynamic_cast<PartPlate*>(plate_item.first);
|
||||||
plate->reset_bed_type();
|
plate->reset_bed_type();
|
||||||
|
plate->reset_skirt_start_angle();
|
||||||
plate->set_print_seq(PrintSequence::ByDefault);
|
plate->set_print_seq(PrintSequence::ByDefault);
|
||||||
plate->set_first_layer_print_sequence({});
|
plate->set_first_layer_print_sequence({});
|
||||||
|
plate->set_other_layers_print_sequence({});
|
||||||
plate->set_spiral_vase_mode(false, true);
|
plate->set_spiral_vase_mode(false, true);
|
||||||
notify_changed(plate_item.first);
|
notify_changed(plate_item.first);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user