mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 13:36:31 +01:00
Remove smart match and lexical $_ for compatibility with perl 5.18. #1216
This commit is contained in:
1 parent
8c40cefe1e
commit
43814e99f6
3 files changed
+5
-5
No files matched your search
@@ -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+).*?/) {
|
||||
|
||||
Reference in new issue
Block a user