From 63d56c666bd511431781a92fb8d7d7b57af8bec1 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 20 May 2014 23:25:12 +0200 Subject: [PATCH] Include full config in G-code files. #2047 #2032 --- lib/Slic3r/Print.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 43aecf17e..a0bba00f5 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -1046,9 +1046,11 @@ sub write_gcode { # append full config print $fh "\n"; - foreach my $opt_key (sort @{$self->config->get_keys}) { - next if $Slic3r::Config::Options->{$opt_key}{shortcut}; - printf $fh "; %s = %s\n", $opt_key, $self->config->serialize($opt_key); + foreach my $config ($self->config, $self->default_object_config, $self->default_region_config) { + foreach my $opt_key (sort @{$config->get_keys}) { + next if $Slic3r::Config::Options->{$opt_key}{shortcut}; + printf $fh "; %s = %s\n", $opt_key, $config->serialize($opt_key); + } } # close our gcode file