mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
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:
parent
72f348658f
commit
3e764ada0c
2 changed files with 28 additions and 0 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue