gromgull / py-vox-io

Python module for parsing and writing MagicaVoxel vox file
MIT License
102 stars 26 forks source link

unpak_from error #9

Closed ffield7 closed 1 year ago

ffield7 commented 1 year ago

Thank you for your program. In using viz_rgba.py to read my original file, unpack_from error occurred. It says:

unpack_from requires a buffer of at least 8 bytes for unpacking 4 bytes at offset 4 (actual buffer size is 4) File "C:\Users\vscode\vox-py-io\py-vox-io\examples\viz_rgba.py", line 9, in m = VoxParser('test2.vox').parse()

How can I avoid this error?

ffield7 commented 1 year ago

It seems a problem of Blender option program (https://github.com/Spyduck/voxwriter) because If I re-open and re-save by MagicaVoxel the file that shows error, the error disappears.