mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-21 11:29:26 -07:00
Incomplete work for refactoring regions and flows
This commit is contained in:
@@ -638,7 +638,6 @@ sub split_object {
|
||||
input_file => $current_model_object->input_file,
|
||||
config => $current_model_object->config->clone,
|
||||
layer_height_ranges => $current_model_object->layer_height_ranges, # TODO: clone this
|
||||
material_mapping => $current_model_object->material_mapping, # TODO: clone this
|
||||
);
|
||||
$model_object->add_volume(
|
||||
mesh => $mesh,
|
||||
|
||||
@@ -324,7 +324,12 @@ sub Closing {
|
||||
my $self = shift;
|
||||
|
||||
# save mappings into the plater object
|
||||
$self->model_object->material_mapping($self->{mapping});
|
||||
foreach my $volume (@{$self->model_object}) {
|
||||
if (defined $volume->material_id) {
|
||||
my $config = $self->model_object->model->materials->{ $volume->material_id }->config;
|
||||
$config->set('extruder', $self->{mapping}{ $volume->material_id });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
@@ -146,7 +146,10 @@ sub quick_slice {
|
||||
}
|
||||
$model->center_instances_around_point($config->print_center);
|
||||
|
||||
$print->add_model_object($_) for @{ $model->objects };
|
||||
foreach my $model_object (@{$model->objects}) {
|
||||
$print->auto_assign_extruders($model_object);
|
||||
$print->add_model_object($model_object);
|
||||
}
|
||||
$print->validate;
|
||||
|
||||
# select output file
|
||||
|
||||
Reference in New Issue
Block a user