mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 09:31:59 +08:00
CLI: Fixed "query-printer-models".
If printer_technology options isn't used, then ALL installed printer models will be returned.
This commit is contained in:
parent
a46980ca47
commit
ce910eb60a
@ -992,7 +992,7 @@ bool CLI::processed_profiles_sharing()
|
|||||||
if (query_options.find(opt_key) != query_options.end())
|
if (query_options.find(opt_key) != query_options.end())
|
||||||
continue;
|
continue;
|
||||||
if (opt_key == "query-printer-models") {
|
if (opt_key == "query-printer-models") {
|
||||||
ret = Slic3r::get_json_printer_models(Preset::printer_technology(m_config));
|
ret = Slic3r::get_json_printer_models(get_printer_technology(m_config));
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
else if (opt_key == "query-printer-profiles") {
|
else if (opt_key == "query-printer-profiles") {
|
||||||
|
@ -199,7 +199,7 @@ static void add_printer_models(pt::ptree& vendor_node,
|
|||||||
const PrinterPresetCollection& printer_presets)
|
const PrinterPresetCollection& printer_presets)
|
||||||
{
|
{
|
||||||
for (const auto& printer_model : vendor_profile->models) {
|
for (const auto& printer_model : vendor_profile->models) {
|
||||||
if (printer_technology != ptAny && printer_model.technology != printer_technology)
|
if (printer_technology != ptUnknown && printer_model.technology != printer_technology)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
pt::ptree variants_node;
|
pt::ptree variants_node;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user