diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-14 22:31:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-14 22:31:42 +0300 |
commit | 5722bc15cd193bf8c083e282c3ad36344aab3832 (patch) | |
tree | bc90473942dfa41e0314a2fc42e533f13b466dcb /io_mesh_stl/stl_utils.py | |
parent | 55c6ce612617ca2f5aca0ecefe4ddf381100f94a (diff) |
bugfix [#25635] STL export results in error
also made some pep8 corrections
Diffstat (limited to 'io_mesh_stl/stl_utils.py')
-rw-r--r-- | io_mesh_stl/stl_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_mesh_stl/stl_utils.py b/io_mesh_stl/stl_utils.py index 734204b8..9524ecb3 100644 --- a/io_mesh_stl/stl_utils.py +++ b/io_mesh_stl/stl_utils.py @@ -65,6 +65,7 @@ class ListDict(dict): BINARY_HEADER = 80 BINARY_STRIDE = 12 * 4 + 2 + def _is_ascii_file(data): ''' This function returns True if the data represents an ASCII file. @@ -77,6 +78,7 @@ def _is_ascii_file(data): return not data.size() == BINARY_HEADER + 4 + BINARY_STRIDE * size + def _binary_read(data): # an stl binary file is # - 80 bytes of description |