New [print_preset], [filament_preset] and [printer_preset] variables. #675

This commit is contained in:
Alessandro Ranellucci
2012-09-12 15:29:44 +02:00
parent e0d5f4e528
commit 7a5071f66c
2 changed files with 4 additions and 0 deletions

View File

@@ -508,6 +508,8 @@ sub export_gcode {
# set this before spawning the thread because ->config needs GetParent and it's not available there
$self->{print}->config($self->skeinpanel->config);
$self->{print}->extra_variables->{"${_}_preset"} = $self->skeinpanel->{options_tabs}{$_}->current_preset->{name}
for qw(print filament printer);
# select output file
$self->{output_file} = $main::opt{output};