mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Completed parts visualization with highlighting
This commit is contained in:
parent
3f4f27fa5d
commit
b20caa4e31
3 changed files with 20 additions and 11 deletions
|
@ -355,7 +355,11 @@ sub combine_stls {
|
|||
my $new_object = $new_model->add_object;
|
||||
for my $m (0 .. $#models) {
|
||||
my $model = $models[$m];
|
||||
$new_model->set_material($m, { Name => basename($input_files[$m]) });
|
||||
|
||||
my $material_name = basename($input_files[$m]);
|
||||
$material_name =~ s/\.(stl|obj)$//i;
|
||||
|
||||
$new_model->set_material($m, { Name => $material_name });
|
||||
$new_object->add_volume(
|
||||
material_id => $m,
|
||||
mesh => $model->objects->[0]->volumes->[0]->mesh,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue