From 4d81a6d017198fcebee17cff0f8d4ea8d8707ef6 Mon Sep 17 00:00:00 2001 From: Florens Wasserfall Date: Wed, 15 Feb 2017 15:16:17 +0100 Subject: [PATCH] suppress re-generation of layer during gcode export --- lib/Slic3r/GUI/Plater.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 6bbb403ba..4edc0831b 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1260,6 +1260,12 @@ sub export_gcode { $self->object_list_changed; }); + # Supress re-initialization of spline based layer heights + #foreach my $object @{$self->{print}->objects} { + # $object->layer_height_spline->suppressUpdate; + # } + $_->layer_height_spline->suppressUpdate for @{$self->{print}->objects}; + # start background process, whose completion event handler # will detect $self->{export_gcode_output_file} and proceed with export $self->start_background_process;