From 26051d12ef65c4ddf619eaa6f701d34b65c63896 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 29 May 2012 17:02:47 +0200 Subject: [PATCH] Bugfix: fatal error when a non-manifold object is processed on a non-thraeded perl --- lib/Slic3r/GUI/Plater.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 87c736e30..63a697595 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -505,9 +505,9 @@ sub export_gcode2 { } else { $print->export_gcode(%params); } - Slic3r::GUI::warning_catcher($self, sub { + Slic3r::GUI::warning_catcher($self, $Slic3r::have_threads ? sub { Wx::PostEvent($self, Wx::PlThreadEvent->new(-1, $MESSAGE_DIALOG_EVENT, shared_clone([@_]))); - })->($_) for @warnings; + } : undef)->($_) for @warnings; } my $message = "Your files were successfully sliced";