mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 20:19:09 +08:00
Compatibility with recent Moo versions
This commit is contained in:
parent
22f8d57b36
commit
8aafafac7c
@ -14,7 +14,11 @@ sub debugf {
|
||||
printf @_ if $debug;
|
||||
}
|
||||
|
||||
# load threads before Moo as required by it
|
||||
our $have_threads = $Config{useithreads} && eval "use threads; use Thread::Queue; 1";
|
||||
|
||||
use Config;
|
||||
use Moo;
|
||||
use Slic3r::Config;
|
||||
use Slic3r::ExPolygon;
|
||||
use Slic3r::Extruder;
|
||||
@ -36,7 +40,6 @@ use Slic3r::Print::Object;
|
||||
use Slic3r::Surface;
|
||||
use Slic3r::TriangleMesh;
|
||||
|
||||
our $have_threads = $Config{useithreads} && eval "use threads; use Thread::Queue; 1";
|
||||
our $threads = $have_threads ? 2 : undef;
|
||||
|
||||
# miscellaneous options
|
||||
|
Loading…
x
Reference in New Issue
Block a user