From 8aafafac7c557bde40c9b4eab1aa529303449f17 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 19 May 2012 20:25:59 +0200 Subject: [PATCH] Compatibility with recent Moo versions --- lib/Slic3r.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index df3fed9b7..f3bad1e8f 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -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