From 678112b9263551138dfce89002e2b2cceaa9b39f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 8 Aug 2014 17:18:41 +0200 Subject: [PATCH] Bugfix: spiral vase checkbox couldn't be disabled under some circumstances --- lib/Slic3r/GUI/Tab.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index 10a04b564..65d7dad6f 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -683,8 +683,15 @@ sub _update { my $config = $self->{config}; + # we enable spiral vase if other settings are compatible with it + # or if it is enabled (this prevents the checkbox from being disabled + # when an incompatible setting is set) + $self->get_field('spiral_vase')->toggle( + ($config->perimeters == 1 && $config->top_solid_layers == 0 && $config->fill_density == 0) + || $config->spiral_vase + ); + my $have_perimeters = $config->perimeters > 0; - $self->get_field('spiral_vase')->toggle($config->perimeters == 1 && $config->top_solid_layers == 0 && $config->fill_density == 0); $self->get_field($_)->toggle($have_perimeters) for qw(extra_perimeters thin_walls overhangs seam_position external_perimeters_first);