Skip to content

Commit

Permalink
One more little speed optimization in STL.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed May 14, 2013
1 parent 25bafe7 commit 745cea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Slic3r/Format/STL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 745cea8

Please sign in to comment.