mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Default extruder wasn't applied to perimeter extruder. Includes regression test. #1868
This commit is contained in:
parent
0c50ab5323
commit
f51921a11a
3 changed files with 55 additions and 9 deletions
|
@ -82,6 +82,11 @@ sub set_material {
|
|||
);
|
||||
}
|
||||
|
||||
sub get_material {
|
||||
my ($self, $material_id) = @_;
|
||||
return $self->materials->{$material_id};
|
||||
}
|
||||
|
||||
sub duplicate_objects_grid {
|
||||
my ($self, $grid, $distance) = @_;
|
||||
|
||||
|
@ -356,6 +361,11 @@ sub add_volume {
|
|||
);
|
||||
}
|
||||
|
||||
if (defined $new_volume->material_id && !defined $self->model->get_material($new_volume->material_id)) {
|
||||
# TODO: this should be a trigger on Volume::material_id
|
||||
$self->model->set_material($new_volume->material_id);
|
||||
}
|
||||
|
||||
push @{$self->volumes}, $new_volume;
|
||||
|
||||
# invalidate cached bounding box
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue