ColinGilbert / noobwerkz-engine

My happy playground of programmer fun.
Apache License 2.0
20 stars 3 forks source link

Mesh loading/snapshotting issue #2

Closed ColinGilbert closed 8 years ago

ColinGilbert commented 9 years ago

Loading an in-memory mesh.snapshot() doesn't work. OFF formatting code seem correct, though... It seems that three bytes are missing, as a separate (known-good) implementation returns a memory area three bytes longer than when it crashes. Also, saving to file via OpenMesh works, too.

Bug came up after snapshotting a (good) mesh that was already loaded via the normal interface. Perhaps a vertex or triangle index-triple got overlooked while being loaded?

ColinGilbert commented 9 years ago

Fixed by simple, ugly hack : AKA: "save to disk, reopen." :)

ColinGilbert commented 8 years ago

Gonna repen now.

ColinGilbert commented 8 years ago

Fixed