per-thread clipper object for parallel support generation #888
This commit is contained in:
parent
241dff00e2
commit
f3a1221039
1 changed files with 1 additions and 0 deletions
|
@ -674,6 +674,7 @@ sub generate_support_material {
|
|||
items => [ keys %layers ],
|
||||
thread_cb => sub {
|
||||
my $q = shift;
|
||||
$Slic3r::Geometry::Clipper::clipper = Math::Clipper->new;
|
||||
my $result = {};
|
||||
while (defined (my $layer_id = $q->dequeue)) {
|
||||
$result->{$layer_id} = [ $process_layer->($layer_id) ];
|
||||
|
|
Loading…
Reference in a new issue