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 6d3400e commit 094f728Copy full SHA for 094f728
src/registry.jl
@@ -177,10 +177,7 @@ 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
- eof(io) && (seekstart(io); return true)
181
-
182
- seekstart(io)
183
- false
+ (seekstart(io); return eof(io)) # if end of file, we have a stl!
184
end
185
add_format(format"STL_ASCII", detect_stlascii, [".stl", ".STL"])
186
add_format(format"STL_BINARY", detect_stlbinary, [".stl", ".STL"])
0 commit comments