From 2f6bf3e3f2126792f94cbab8fcb68dc2a8b8f30d Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 10 Jan 2019 18:17:22 +0100 Subject: [PATCH] Fix of 2b0e1633cf2b1ff8c7906c3c117d7dada001cbee, where the Print::validate() tested wipe tower specific stuff incorrectly even if the wipe tower was not active. --- src/libslic3r/Print.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index f87f1283e..16fbb3738 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -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), " "all nozzles have to be of the same diameter."); } - if (object->config().support_material_contact_distance == 0) { - // Soluble interface - if (object->config().support_material_contact_distance == 0 && ! object->config().support_material_synchronize_layers) - return L("For the Wipe Tower to work with the soluble supports, the support layers need to be synchronized with the object layers."); - } else { - // Non-soluble interface - if (object->config().support_material_extruder != 0 || object->config().support_material_interface_extruder != 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)."); - } + if (this->has_wipe_tower()) { + if (object->config().support_material_contact_distance == 0) { + // Soluble interface + if (object->config().support_material_contact_distance == 0 && ! object->config().support_material_synchronize_layers) + return L("For the Wipe Tower to work with the soluble supports, the support layers need to be synchronized with the object layers."); + } else { + // Non-soluble interface + if (object->config().support_material_extruder != 0 || object->config().support_material_interface_extruder != 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