From ca5dfc05e7707dead48b911ab79179116f2184c4 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 14 Dec 2011 10:29:08 +0100 Subject: [PATCH] Accept STL files with spaces at the end of vertex lines. #119 --- lib/Slic3r/STL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/STL.pm b/lib/Slic3r/STL.pm index ae964c4ef..a1562b94d 100644 --- a/lib/Slic3r/STL.pm +++ b/lib/Slic3r/STL.pm @@ -45,7 +45,7 @@ sub read_file { sub _read_ascii { my ($fh, $facets) = @_; - my $point_re = qr/([^ ]+)\s+([^ ]+)\s+([^ ]+)$/; + my $point_re = qr/([^ ]+)\s+([^ ]+)\s+([^ ]+)\s*$/; my $facet; seek $fh, 0, 0;