1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-26 10:25:49 +00:00

Calls to ->repair where needed

This commit is contained in:
Alessandro Ranellucci
2013-09-10 19:25:53 +02:00
parent 566d38a472
commit 78ee6e5d6d
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@ sub new {
$self->volumes([]);
foreach my $volume (@{$object->volumes}) {
my $mesh = $volume->mesh;
$mesh->repair;
my $material_id = $volume->material_id // '_';
my $color_idx = first { $materials[$_] eq $material_id } 0..$#materials;