mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 13:15:55 +08:00
per-thread clipper object for parallel support generation #888
This commit is contained in:
parent
241dff00e2
commit
f3a1221039
@ -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…
x
Reference in New Issue
Block a user