mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-31 20:51:12 -06:00
Remove smart match and lexical $_ for compatibility with perl 5.18. #1216
This commit is contained in:
parent
8c40cefe1e
commit
43814e99f6
3 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ sub read_file {
|
|||
Slic3r::open(\my $fh, '<', $file) or die "Failed to open $file\n";
|
||||
my $vertices = [];
|
||||
my $facets = [];
|
||||
while (my $_ = <$fh>) {
|
||||
while (<$fh>) {
|
||||
if (/^v ([^ ]+)\s+([^ ]+)\s+([^ ]+)/) {
|
||||
push @$vertices, [$1, $2, $3];
|
||||
} elsif (/^f (\d+).*? (\d+).*? (\d+).*?/) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue