For the wipe tower to work, verify that all objects are sliced

with the same layer heights.
Also enforce layer synchronization for soluble supports.
This commit is contained in:
bubnikv 2017-06-06 11:40:35 +02:00
parent 72f348658f
commit 3e764ada0c
2 changed files with 28 additions and 0 deletions

View file

@ -890,6 +890,22 @@ sub _update {
$self->load_config($new_conf);
}
if ($config->wipe_tower && $config->support_material && $config->support_material_contact_distance == 0 &&
! $config->support_material_synchronize_layers) {
my $dialog = Wx::MessageDialog->new($self,
"For the Wipe Tower to work with the soluble supports, the support layers\n"
. "need to be synchronized with the object layers.\n"
. "\nShall I synchronize support layers in order to enable the Wipe Tower?",
'Wipe Tower', wxICON_WARNING | wxYES | wxNO);
my $new_conf = Slic3r::Config->new;
if ($dialog->ShowModal() == wxID_YES) {
$new_conf->set("support_material_synchronize_layers", 1);
} else {
$new_conf->set("wipe_tower", 0);
}
$self->load_config($new_conf);
}
if ($keys_modified->{'layer_height'}) {
# If the user had set the variable layer height, reset it and let the user know.
}