mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 11:02:08 +00:00
Update AMF export code
This commit is contained in:
@@ -789,7 +789,6 @@ sub make_model {
|
||||
my $model_object = $plater_object->get_model_object;
|
||||
|
||||
my $new_model_object = $model->add_object(
|
||||
vertices => $model_object->vertices,
|
||||
input_file => $plater_object->input_file,
|
||||
config => $plater_object->config,
|
||||
layer_height_ranges => $plater_object->layer_height_ranges,
|
||||
@@ -798,7 +797,7 @@ sub make_model {
|
||||
foreach my $volume (@{$model_object->volumes}) {
|
||||
$new_model_object->add_volume(
|
||||
material_id => $volume->material_id,
|
||||
facets => $volume->facets,
|
||||
mesh => $volume->mesh,
|
||||
);
|
||||
$model->set_material($volume->material_id || 0, {});
|
||||
}
|
||||
|
||||
@@ -355,8 +355,7 @@ sub combine_stls {
|
||||
$new_model->set_material($m, { Name => basename($input_files[$m]) });
|
||||
$new_object->add_volume(
|
||||
material_id => $m,
|
||||
facets => $model->objects->[0]->volumes->[0]->facets,
|
||||
vertices => $model->objects->[0]->vertices,
|
||||
mesh => $model->objects->[0]->volumes->[0]->mesh,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user