From 745cea8e6c9aee1757aae6c5014bd926b3766131 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 14 May 2013 14:12:32 +0200 Subject: [PATCH] One more little speed optimization in STL.pm --- lib/Slic3r/Format/STL.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Format/STL.pm b/lib/Slic3r/Format/STL.pm index 659568092..6b103cbdc 100644 --- a/lib/Slic3r/Format/STL.pm +++ b/lib/Slic3r/Format/STL.pm @@ -55,8 +55,8 @@ sub _read_ascii { seek $fh, 0, 0; while (my $_ = <$fh>) { if (!$facet) { - /^\s*facet\s+normal\s+$point_re/ or next; - $facet = []; # ignore normal: [$1, $2, $3] + /^\s*facet\s+normal\s+/ or next; + $facet = []; # ignore normal } else { if (/^\s*endfacet/) { push @$facets, $facet;