Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2012-09-22 21:04:36 +0400
committerAlessandro Ranellucci <aar@cpan.org>2012-09-22 21:04:36 +0400
commit02356fd613e495934036cd36c5177325fd797b10 (patch)
tree0409d5c1f3c1918bcfc02e71fa933cfa3fe28f2e /utils
parent04be94023b27060347329825474b323123d9d448 (diff)
Large refactoring to allow processing multimaterial files
Diffstat (limited to 'utils')
-rwxr-xr-xutils/stl-to-amf.pl2
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],