diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-09-22 21:04:36 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-09-22 21:04:36 +0400 |
commit | 02356fd613e495934036cd36c5177325fd797b10 (patch) | |
tree | 0409d5c1f3c1918bcfc02e71fa933cfa3fe28f2e /utils | |
parent | 04be94023b27060347329825474b323123d9d448 (diff) |
Large refactoring to allow processing multimaterial files
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/stl-to-amf.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/stl-to-amf.pl b/utils/stl-to-amf.pl index 78e5989b4..e6fc1fa8d 100755 --- a/utils/stl-to-amf.pl +++ b/utils/stl-to-amf.pl @@ -44,7 +44,7 @@ my %opt = (); } @{ $model->objects->[0]->volumes->[0]->facets }; my $material_id = scalar keys %{$new_model->materials}; - $new_model->materials->{$material_id} = { Name => basename($ARGV[$m]) }; + $new_model->set_material($material_id, { Name => basename($ARGV[$m]) }); $new_object->add_volume( material_id => $material_id, facets => [@new_facets], |