mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-30 05:51:59 +08:00
Set the current_extruder value for the GUI
This commit is contained in:
parent
b22b1ae300
commit
1a0fc94c3b
@ -142,6 +142,9 @@ sub export {
|
||||
# disable fan
|
||||
print $fh $gcodegen->writer->set_fan(0, 1)
|
||||
if $self->config->cooling && $self->config->disable_fan_first_layers;
|
||||
|
||||
# set initial extruder so it can be used in start G-code
|
||||
print $fh $gcodegen->set_extruder($self->print->extruders->[0]);
|
||||
|
||||
# set bed temperature
|
||||
if ($self->config->has_heatbed && (my $temp = $self->config->first_layer_bed_temperature) && $self->config->start_gcode !~ /M(?:190|140)/i) {
|
||||
@ -223,9 +226,6 @@ sub export {
|
||||
}
|
||||
}
|
||||
|
||||
# set initial extruder only after custom start G-code
|
||||
print $fh $gcodegen->set_extruder($self->print->extruders->[0]);
|
||||
|
||||
# do all objects for each layer
|
||||
if ($self->config->complete_objects) {
|
||||
# print objects from the smallest to the tallest to avoid collisions
|
||||
|
@ -102,6 +102,7 @@ PrintGCode::output()
|
||||
fh << _gcodegen.writer.set_fan(0,1) << "\n";
|
||||
}
|
||||
|
||||
// set initial extruder so it can be used in start G-code
|
||||
const auto extruders = _print.extruders();
|
||||
fh << _gcodegen.set_extruder( *(extruders.begin()) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user