Include full config in G-code files. #2047 #2032

This commit is contained in:
Alessandro Ranellucci 2014-05-20 23:25:12 +02:00
parent a00f6c72ed
commit 63d56c666b

View File

@ -1046,9 +1046,11 @@ sub write_gcode {
# append full config # append full config
print $fh "\n"; print $fh "\n";
foreach my $opt_key (sort @{$self->config->get_keys}) { 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}; next if $Slic3r::Config::Options->{$opt_key}{shortcut};
printf $fh "; %s = %s\n", $opt_key, $self->config->serialize($opt_key); printf $fh "; %s = %s\n", $opt_key, $config->serialize($opt_key);
}
} }
# close our gcode file # close our gcode file