mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 14:22:54 +02:00
Be tolerant with STL files without the "normal" word
This commit is contained in:
1 parent
64a21276e3
commit
4774b0e910
1 file changed
+1
-1
@@ -55,7 +55,7 @@ sub _read_ascii {
|
||||
seek $fh, 0, 0;
|
||||
while (<$fh>) {
|
||||
if (!$facet) {
|
||||
/^\s*facet\s+normal\s+/ or next;
|
||||
/^\s*facet/ or next; # be tolerant with malformed STL files not having the "normal" word
|
||||
$facet = []; # ignore normal
|
||||
} else {
|
||||
if (/^\s*endfacet/) {
|
||||
|
||||
Reference in new issue
Block a user