Bugfix: fatal error when a non-manifold object is processed on a non-thraeded perl

This commit is contained in:
Alessandro Ranellucci 2012-05-29 17:02:47 +02:00
parent 09d4ab8470
commit 26051d12ef

View file

@ -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";