update slic3r

This commit is contained in:
QIDI TECH
2025-05-08 15:05:30 +08:00
parent 126534997a
commit 011619cf23
307 changed files with 55594 additions and 19386 deletions

View File

@@ -324,6 +324,14 @@ static void add_config_substitutions(const ConfigSubstitutions& conf_substitutio
new_val = wxString("\"") + values[val] + "\"" + " (" + from_u8(_utf8(labels[val])) + ")";
break;
}
case coEnums:
{
const std::vector<std::string>& labels = def->enum_labels;
const std::vector<std::string>& values = def->enum_values;
std::string val = conf_substitution.new_value->serialize();
new_val = wxString("\"") + from_u8(_utf8(val)) + "\"";
break;
}
case coBool:
new_val = conf_substitution.new_value->getBool() ? "true" : "false";
break;