mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: sort the filament names
jira: [STUDIO-9825] Change-Id: I29a313db9a012124888357008afea1ddba39a3e5 (cherry picked from commit 1a676645eb522821428cc3167bfb8ac43277e330)
This commit is contained in:
@@ -8200,6 +8200,31 @@ int DynamicPrintConfig::update_values_from_multi_to_single_2(std::set<std::strin
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::string
|
||||
DynamicPrintConfig::get_filament_vendor() const
|
||||
{
|
||||
const ConfigOptionStrings* opt = dynamic_cast<const ConfigOptionStrings*> (option("filament_vendor"));
|
||||
if (opt && !opt->values.empty())
|
||||
{
|
||||
return opt->values[0];
|
||||
}
|
||||
|
||||
return std::string();
|
||||
}
|
||||
|
||||
|
||||
std::string
|
||||
DynamicPrintConfig::get_filament_type() const
|
||||
{
|
||||
const ConfigOptionStrings* opt = dynamic_cast<const ConfigOptionStrings*> (option("filament_type"));
|
||||
if (opt && !opt->values.empty())
|
||||
{
|
||||
return opt->values[0];
|
||||
}
|
||||
|
||||
return std::string();
|
||||
}
|
||||
|
||||
void DynamicPrintConfig::update_values_to_printer_extruders(DynamicPrintConfig& printer_config, std::set<std::string>& key_set, std::string id_name, std::string variant_name, unsigned int stride, unsigned int extruder_id)
|
||||
{
|
||||
int extruder_count;
|
||||
|
||||
Reference in New Issue
Block a user