mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
One more little speed optimization in STL.pm
This commit is contained in:
@@ -55,8 +55,8 @@ sub _read_ascii {
|
|||||||
seek $fh, 0, 0;
|
seek $fh, 0, 0;
|
||||||
while (my $_ = <$fh>) {
|
while (my $_ = <$fh>) {
|
||||||
if (!$facet) {
|
if (!$facet) {
|
||||||
/^\s*facet\s+normal\s+$point_re/ or next;
|
/^\s*facet\s+normal\s+/ or next;
|
||||||
$facet = []; # ignore normal: [$1, $2, $3]
|
$facet = []; # ignore normal
|
||||||
} else {
|
} else {
|
||||||
if (/^\s*endfacet/) {
|
if (/^\s*endfacet/) {
|
||||||
push @$facets, $facet;
|
push @$facets, $facet;
|
||||||
|
|||||||
Reference in New Issue
Block a user