Fix of ExtrusionMultiPath binding to Perl & G-code generator.
This commit is contained in:
parent
29b986fa76
commit
08351b5e48
@ -481,13 +481,23 @@ sub process_layer {
|
||||
if ($layer->isa('Slic3r::Layer::Support')) {
|
||||
if ($layer->support_interface_fills->count > 0) {
|
||||
$gcode .= $self->_gcodegen->set_extruder($object->config->support_material_interface_extruder-1);
|
||||
$gcode .= $self->_gcodegen->extrude_path($_, 'support material interface', $object->config->get_abs_value('support_material_interface_speed'))
|
||||
for @{$layer->support_interface_fills->chained_path_from($self->_gcodegen->last_pos, 0)};
|
||||
for my $path (@{$layer->support_interface_fills->chained_path_from($self->_gcodegen->last_pos, 0)}) {
|
||||
if ($path->isa('Slic3r::ExtrusionMultiPath')) {
|
||||
$gcode .= $self->_gcodegen->extrude_multipath($path, 'support material interface', $object->config->get_abs_value('support_material_interface_speed'));
|
||||
} else {
|
||||
$gcode .= $self->_gcodegen->extrude_path($path, 'support material interface', $object->config->get_abs_value('support_material_interface_speed'));
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($layer->support_fills->count > 0) {
|
||||
$gcode .= $self->_gcodegen->set_extruder($object->config->support_material_extruder-1);
|
||||
$gcode .= $self->_gcodegen->extrude_path($_, 'support material', $object->config->get_abs_value('support_material_speed'))
|
||||
for @{$layer->support_fills->chained_path_from($self->_gcodegen->last_pos, 0)};
|
||||
for my $path (@{$layer->support_fills->chained_path_from($self->_gcodegen->last_pos, 0)}) {
|
||||
if ($path->isa('Slic3r::ExtrusionMultiPath')) {
|
||||
$gcode .= $self->_gcodegen->extrude_multipath($path, 'support material', $object->config->get_abs_value('support_material_speed'));
|
||||
} else {
|
||||
$gcode .= $self->_gcodegen->extrude_path($path, 'support material', $object->config->get_abs_value('support_material_speed'));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -264,6 +264,7 @@ for my $class (qw(
|
||||
Slic3r::ExPolygon::Collection
|
||||
Slic3r::Extruder
|
||||
Slic3r::ExtrusionLoop
|
||||
Slic3r::ExtrusionMultiPath
|
||||
Slic3r::ExtrusionPath
|
||||
Slic3r::ExtrusionPath::Collection
|
||||
Slic3r::ExtrusionSimulator
|
||||
|
Loading…
Reference in New Issue
Block a user