mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
parent
1bd197df3a
commit
5ec8f51bd4
3 changed files with 6 additions and 6 deletions
|
@ -362,7 +362,7 @@ CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(BedType)
|
||||||
// BBS
|
// BBS
|
||||||
static const t_config_enum_values s_keys_map_LayerSeq = {
|
static const t_config_enum_values s_keys_map_LayerSeq = {
|
||||||
{ "Auto", flsAuto },
|
{ "Auto", flsAuto },
|
||||||
{ "Customize", flsCutomize },
|
{ "Customize", flsCustomize },
|
||||||
};
|
};
|
||||||
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(LayerSeq)
|
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(LayerSeq)
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,7 @@ enum BedType {
|
||||||
// BBS
|
// BBS
|
||||||
enum LayerSeq {
|
enum LayerSeq {
|
||||||
flsAuto,
|
flsAuto,
|
||||||
flsCutomize
|
flsCustomize
|
||||||
};
|
};
|
||||||
|
|
||||||
// BBS
|
// BBS
|
||||||
|
|
|
@ -2638,14 +2638,14 @@ void TabPrintModel::update_model_config()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
replace(m_all_keys.begin(), m_all_keys.end(), std::string("first_layer_print_sequence"), std::string("first_layer_sequence_choice"));
|
replace(m_all_keys.begin(), m_all_keys.end(), std::string("first_layer_print_sequence"), std::string("first_layer_sequence_choice"));
|
||||||
m_config->set_key_value("first_layer_sequence_choice", new ConfigOptionEnum<LayerSeq>(flsCutomize));
|
m_config->set_key_value("first_layer_sequence_choice", new ConfigOptionEnum<LayerSeq>(flsCustomize));
|
||||||
}
|
}
|
||||||
if (!plate_config.has("other_layers_print_sequence")) {
|
if (!plate_config.has("other_layers_print_sequence")) {
|
||||||
m_config->set_key_value("other_layers_sequence_choice", new ConfigOptionEnum<LayerSeq>(flsAuto));
|
m_config->set_key_value("other_layers_sequence_choice", new ConfigOptionEnum<LayerSeq>(flsAuto));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
replace(m_all_keys.begin(), m_all_keys.end(), std::string("other_layers_print_sequence"), std::string("other_layers_sequence_choice"));
|
replace(m_all_keys.begin(), m_all_keys.end(), std::string("other_layers_print_sequence"), std::string("other_layers_sequence_choice"));
|
||||||
m_config->set_key_value("other_layers_sequence_choice", new ConfigOptionEnum<LayerSeq>(flsCutomize));
|
m_config->set_key_value("other_layers_sequence_choice", new ConfigOptionEnum<LayerSeq>(flsCustomize));
|
||||||
}
|
}
|
||||||
notify_changed(plate_item.first);
|
notify_changed(plate_item.first);
|
||||||
}
|
}
|
||||||
|
@ -2885,7 +2885,7 @@ void TabPrintPlate::on_value_change(const std::string& opt_key, const boost::any
|
||||||
if (first_layer_seq_choice == LayerSeq::flsAuto) {
|
if (first_layer_seq_choice == LayerSeq::flsAuto) {
|
||||||
plate->set_first_layer_print_sequence({});
|
plate->set_first_layer_print_sequence({});
|
||||||
}
|
}
|
||||||
else if (first_layer_seq_choice == LayerSeq::flsCutomize) {
|
else if (first_layer_seq_choice == LayerSeq::flsCustomize) {
|
||||||
const DynamicPrintConfig& plate_config = plate_item.second->get();
|
const DynamicPrintConfig& plate_config = plate_item.second->get();
|
||||||
if (!plate_config.has("first_layer_print_sequence")) {
|
if (!plate_config.has("first_layer_print_sequence")) {
|
||||||
std::vector<int> initial_sequence;
|
std::vector<int> initial_sequence;
|
||||||
|
@ -2906,7 +2906,7 @@ void TabPrintPlate::on_value_change(const std::string& opt_key, const boost::any
|
||||||
if (other_layer_seq_choice == LayerSeq::flsAuto) {
|
if (other_layer_seq_choice == LayerSeq::flsAuto) {
|
||||||
plate->set_other_layers_print_sequence({});
|
plate->set_other_layers_print_sequence({});
|
||||||
}
|
}
|
||||||
else if (other_layer_seq_choice == LayerSeq::flsCutomize) {
|
else if (other_layer_seq_choice == LayerSeq::flsCustomize) {
|
||||||
const DynamicPrintConfig& plate_config = plate_item.second->get();
|
const DynamicPrintConfig& plate_config = plate_item.second->get();
|
||||||
if (!plate_config.has("other_layers_print_sequence")) {
|
if (!plate_config.has("other_layers_print_sequence")) {
|
||||||
std::vector<int> initial_sequence;
|
std::vector<int> initial_sequence;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue