From 4774b0e9107d9198af913aabe5039bd6d7d32986 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 22 Jun 2013 16:15:07 +0200 Subject: [PATCH] Be tolerant with STL files without the "normal" word --- lib/Slic3r/Format/STL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Format/STL.pm b/lib/Slic3r/Format/STL.pm index cf07b1cad..3141374b9 100644 --- a/lib/Slic3r/Format/STL.pm +++ b/lib/Slic3r/Format/STL.pm @@ -55,7 +55,7 @@ sub _read_ascii { seek $fh, 0, 0; while (<$fh>) { if (!$facet) { - /^\s*facet\s+normal\s+/ or next; + /^\s*facet/ or next; # be tolerant with malformed STL files not having the "normal" word $facet = []; # ignore normal } else { if (/^\s*endfacet/) {