mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-29 11:41:20 -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
|
|
@ -53,7 +53,7 @@ sub _read_ascii {
|
|||
my $facet;
|
||||
my %vertices_map = ();
|
||||
seek $fh, 0, 0;
|
||||
while (my $_ = <$fh>) {
|
||||
while (<$fh>) {
|
||||
if (!$facet) {
|
||||
/^\s*facet\s+normal\s+/ or next;
|
||||
$facet = []; # ignore normal
|
||||
|
|
@ -88,7 +88,7 @@ sub _read_binary {
|
|||
my %vertices_map = ();
|
||||
binmode $fh;
|
||||
seek $fh, 80 + 4, 0;
|
||||
while (read $fh, my $_, 4*4*3+2) {
|
||||
while (read $fh, $_, 4*4*3+2) {
|
||||
push @$facets, my $facet = [];
|
||||
for (unpack 'x[f3](a[f3])3') { # ignore normal
|
||||
my $vertex_idx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue