mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Make plater work with new XS code
This commit is contained in:
parent
4c96a52012
commit
d4512a12df
4 changed files with 11 additions and 7 deletions
|
@ -1271,9 +1271,8 @@ sub _trigger_model_object {
|
|||
my $mesh = $model_object->mesh;
|
||||
$mesh->repair;
|
||||
$self->convex_hull(Slic3r::Polygon->new(@{Math::ConvexHull::MonotoneChain::convex_hull($mesh->vertices)}));
|
||||
$self->facets(scalar @{$mesh->facets});
|
||||
$self->facets($mesh->facets_count);
|
||||
$self->vertices(scalar @{$mesh->vertices});
|
||||
|
||||
$self->materials($model_object->materials_count);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue