We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 094f728 commit 9829adfCopy full SHA for 9829adf
src/registry.jl
@@ -177,7 +177,9 @@ function detect_stlbinary(io)
177
skip(io, number_of_triangle_blocks*size_triangleblock-sizeof(Uint16))
178
attrib_byte_count = read(io, Uint16) # read last attrib_byte
179
attrib_byte_count != zero(Uint16) && (seekstart(io); return false) # should be zero as not used
180
- (seekstart(io); return eof(io)) # if end of file, we have a stl!
+ result = eof(io) # if end of file, we have a stl!
181
+ seekstart(io)
182
+ return result
183
end
184
add_format(format"STL_ASCII", detect_stlascii, [".stl", ".STL"])
185
add_format(format"STL_BINARY", detect_stlbinary, [".stl", ".STL"])
0 commit comments