mrwonko / Blender-Jedi-Academy-Tools

Blender Importer and Exporter for the Ghoul2 model/animation format (.gla/.glm) by Raven Software, created with Jedi Knight: Jedi Academy in mind.
14 stars 5 forks source link

delay file writing until after encoding #24

Open mrwonko opened 1 year ago

mrwonko commented 1 year ago

Users are confused when export errors lead to corrupted files. Write to an in-memory buffer first, then write that to a file on success.

mrwonko commented 1 year ago

Are there actually any checks during serialisation? Don't most of them happen prior to that, when loading the scene from blender?