mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
New [print_preset], [filament_preset] and [printer_preset] variables. #675
This commit is contained in:
parent
4fbb8ffb9d
commit
757515ba17
2 changed files with 4 additions and 0 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue