From a86c48d85c71e45c6f710d2cf06bec0152b29bf0 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 13 May 2013 21:55:34 +0200 Subject: [PATCH] Disable retract on layer change when doing spiral vase; also check that we're printing a single-material object --- lib/Slic3r/Print.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 1d84ad640..77ee41e0f 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -70,6 +70,7 @@ sub _trigger_config { $self->config->set('fill_density', 0); $self->config->set('top_solid_layers', 0); $self->config->set('support_material', 0); + $self->config->set('retract_layer_change', [0]); # TODO: only apply this to the spiral layers } } @@ -197,6 +198,9 @@ sub validate { if ((map @{$_->copies}, @{$self->objects}) > 1) { die "The Spiral Vase option can only be used when printing a single object.\n"; } + if (@{$self->regions} > 1) { + die "The Spiral Vase option can only be used when printing single material objects.\n"; + } } }