mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Update AMF export code
This commit is contained in:
parent
4dce461aaf
commit
1aa5dbafd3
3 changed files with 22 additions and 14 deletions
|
@ -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, {});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue