mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Improved G-code generator for multi-material prints
to minimize tool switches.
This commit is contained in:
parent
18bb3c3244
commit
2f57ee60d1
4 changed files with 553 additions and 378 deletions
|
@ -205,6 +205,8 @@ sub gcode {
|
|||
|
||||
# Write the resulting G-code into a temporary file.
|
||||
my $gcode_temp_path = abs_path($0) . '.gcode.temp';
|
||||
# Remove the existing temp file.
|
||||
unlink $gcode_temp_path;
|
||||
$print->process;
|
||||
$print->export_gcode(output_file => $gcode_temp_path, quiet => 1);
|
||||
# Read the temoprary G-code file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue