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 4fbb8ffb9d
commit 757515ba17
2 changed files with 4 additions and 0 deletions

View file

@ -475,6 +475,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};