mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Make threaded perls work with XS data in plater thumbnails. Includes cleaner ->arrayref implementation
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@_ = ();
|
||||
|
||||
Reference in New Issue
Block a user