mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Make threaded perls work with XS data in plater thumbnails. Includes cleaner ->arrayref implementation
This commit is contained in:
parent
fb7cea3cb9
commit
89fae9ee15
2 changed files with 5 additions and 6 deletions
|
@ -741,12 +741,11 @@ sub make_thumbnail {
|
|||
|
||||
if ($Slic3r::have_threads) {
|
||||
Wx::PostEvent($self, Wx::PlThreadEvent->new(-1, $THUMBNAIL_DONE_EVENT, shared_clone([ $obj_idx, $thumbnail ])));
|
||||
Slic3r::thread_cleanup();
|
||||
threads->exit;
|
||||
} else {
|
||||
$self->on_thumbnail_made($obj_idx);
|
||||
}
|
||||
|
||||
Slic3r::thread_cleanup() if $Slic3r::have_threads;
|
||||
};
|
||||
|
||||
@_ = ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue