mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
New [print_preset], [filament_preset] and [printer_preset] variables. #675
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user