fxgenstudio / BVoxelViewer

Voxel Viewer using BeefLang and BNA
3 stars 0 forks source link

When any other, not included, vox model is loaded. #1

Closed LanceJZ closed 4 years ago

LanceJZ commented 4 years ago

It stops on line 96 of MagicaVoxelLoader.bf: uint32 chunkName = _stream.Read(); This happens on all vox models I've tried, both my own and included with last version of MagicalVoxel, only the two you included work. If I change the code to while (_stream.Position < _stream.Length - 3) (Not -2) it works on other models, but without a material (All black) on the Doom vox model that came with MagicaVoxel.

fxgenstudio commented 4 years ago

It's fixed.