minor changes

1. when default hotend model
2. apply speed change for current path
This commit is contained in:
SoftFever
2023-05-10 22:24:27 +08:00
parent 35f8dba5ab
commit 79a43da863
3 changed files with 7 additions and 6 deletions

View File

@@ -504,7 +504,7 @@ 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())
if (out.empty() ||!boost::filesystem::exists(boost::filesystem::path(out)))
out = Slic3r::resources_dir() + "/profiles/hotend.stl";
return out;