the Print::validate() tested wipe tower specific stuff incorrectly
even if the wipe tower was not active.
This commit is contained in:
bubnikv 2019-01-10 18:17:22 +01:00
parent 3d2c7f05ee
commit 2f6bf3e3f2

View file

@ -1312,16 +1312,18 @@ std::string Print::validate() const
"If support is to be printed with the current extruder (support_material_extruder == 0 or support_material_interface_extruder == 0), " "If support is to be printed with the current extruder (support_material_extruder == 0 or support_material_interface_extruder == 0), "
"all nozzles have to be of the same diameter."); "all nozzles have to be of the same diameter.");
} }
if (object->config().support_material_contact_distance == 0) { if (this->has_wipe_tower()) {
// Soluble interface if (object->config().support_material_contact_distance == 0) {
if (object->config().support_material_contact_distance == 0 && ! object->config().support_material_synchronize_layers) // Soluble interface
return L("For the Wipe Tower to work with the soluble supports, the support layers need to be synchronized with the object layers."); if (object->config().support_material_contact_distance == 0 && ! object->config().support_material_synchronize_layers)
} else { return L("For the Wipe Tower to work with the soluble supports, the support layers need to be synchronized with the object layers.");
// Non-soluble interface } else {
if (object->config().support_material_extruder != 0 || object->config().support_material_interface_extruder != 0) // Non-soluble interface
return L("The Wipe Tower currently supports the non-soluble supports only if they are printed with the current extruder without triggering a tool change. " if (object->config().support_material_extruder != 0 || object->config().support_material_interface_extruder != 0)
"(both support_material_extruder and support_material_interface_extruder need to be set to 0)."); return L("The Wipe Tower currently supports the non-soluble supports only if they are printed with the current extruder without triggering a tool change. "
} "(both support_material_extruder and support_material_interface_extruder need to be set to 0).");
}
}
} }
// validate first_layer_height // validate first_layer_height