mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
New [current_extruder] variable in custom G-code. #2866
This commit is contained in:
parent
1875825f45
commit
29b0e807d4
1 changed files with 1 additions and 0 deletions
|
@ -455,6 +455,7 @@ sub point_to_gcode {
|
||||||
sub set_extruder {
|
sub set_extruder {
|
||||||
my ($self, $extruder_id) = @_;
|
my ($self, $extruder_id) = @_;
|
||||||
|
|
||||||
|
$self->placeholder_parser->set('current_extruder', $extruder_id);
|
||||||
return "" if !$self->writer->need_toolchange($extruder_id);
|
return "" if !$self->writer->need_toolchange($extruder_id);
|
||||||
|
|
||||||
# if we are running a single-extruder setup, just set the extruder and return nothing
|
# if we are running a single-extruder setup, just set the extruder and return nothing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue