diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-06-15 21:15:24 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-06-15 21:16:43 +0400 |
commit | 0d65663d01d2bc6aa6573a9906bd44361f66a833 (patch) | |
tree | 834aaba5b2d7e4490b5da3435e418ae48ff81486 | |
parent | 7bf308c08fec43d45649f0a20787372ba046e9a6 (diff) |
Fix plater crash on threaded perls
-rw-r--r-- | lib/Slic3r/GUI/Plater.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index b34efa82e..8ce659486 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1097,6 +1097,7 @@ sub _trigger_model_object { $self->bounding_box($self->model_object->bounding_box); my $mesh = $self->model_object->mesh; + $self->convex_hull(Slic3r::Polygon->new(Math::ConvexHull::MonotoneChain::convex_hull($mesh->used_vertices))); $self->facets(scalar @{$mesh->facets}); $self->vertices(scalar @{$mesh->vertices}); @@ -1139,7 +1140,6 @@ sub make_thumbnail { my $self = shift; my $mesh = $self->model_object->mesh; # $self->model_object is already aligned to origin - $self->convex_hull(Slic3r::Polygon->new(Math::ConvexHull::MonotoneChain::convex_hull($mesh->vertices))); my $thumbnail = Slic3r::ExPolygon::Collection->new( expolygons => (@{$mesh->facets} <= 5000) ? $mesh->horizontal_projection |