optimized hot end model

This commit is contained in:
SoftFever 2023-04-24 17:55:22 +08:00
parent 1347bc9290
commit 5b97935562
47 changed files with 38 additions and 421 deletions

View file

@ -3187,6 +3187,9 @@ namespace PresetUtils {
if (!boost::filesystem::exists(boost::filesystem::path(out)))
out = Slic3r::resources_dir() + "/profiles/" + preset.vendor->id + "/" + pm->hotend_model;
}
if(out.empty())
out = Slic3r::resources_dir() + "/profiles/hotend.stl";
return out;
}
} // namespace PresetUtils

View file

@ -504,6 +504,9 @@ std::string PresetBundle::get_hotend_model_for_printer_model(std::string model_n
out = Slic3r::resources_dir() + "/profiles/" + vendor_name + "/" + hotend_stl;
}
if (out.empty())
out = Slic3r::resources_dir() + "/profiles/hotend.stl";
return out;
}