This commit is contained in:
bubnikv 2019-10-01 13:41:42 +02:00
commit 0e325824b1

View File

@ -1114,6 +1114,9 @@ std::string Print::validate() const
if (m_objects.empty()) if (m_objects.empty())
return L("All objects are outside of the print volume."); return L("All objects are outside of the print volume.");
if (extruders().empty())
return L("The supplied settings will cause an empty print.");
if (m_config.complete_objects) { if (m_config.complete_objects) {
// Check horizontal clearance. // Check horizontal clearance.
{ {
@ -1271,10 +1274,7 @@ std::string Print::validate() const
} }
{ {
// find the smallest nozzle diameter
std::vector<unsigned int> extruders = this->extruders(); std::vector<unsigned int> extruders = this->extruders();
if (extruders.empty())
return L("The supplied settings will cause an empty print.");
// Find the smallest used nozzle diameter and the number of unique nozzle diameters. // Find the smallest used nozzle diameter and the number of unique nozzle diameters.
double min_nozzle_diameter = std::numeric_limits<double>::max(); double min_nozzle_diameter = std::numeric_limits<double>::max();