mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-17 20:52:51 +02:00
Default extruder wasn't applied to perimeter extruder. Includes regression test. #1868
This commit is contained in:
1 parent
0c50ab5323
commit
f51921a11a
3 files changed
+55
-9
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user