Fix: Reset object settings not working for plate's Skirt Start Angle and Other Layers Sequence (#10482)

* init
This commit is contained in:
yw4z 2025-08-23 18:19:00 +03:00 committed by GitHub
parent 15a835af20
commit 099dbb4046
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View file

@ -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";

View file

@ -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

View file

@ -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);
}