Update AMF export code

This commit is contained in:
Alessandro Ranellucci 2013-09-16 09:58:09 +02:00
parent 4dce461aaf
commit 1aa5dbafd3
3 changed files with 22 additions and 14 deletions

View file

@ -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, {});
}