assimp/code/glTF2
Max Vollmer 84e060a816 Change: ExtractData throws exception instead of returning false if data is invalid.
Explanation: The return value of ExtractData is never checked anywhere in code. However if it returns false, outData remains uninitialized. All code using ExtractData assumes outData is initialized and proceeds to using it. I haven't encountered a real-life case where this goes wrong - but the simple fact that it can go wrong is a red flag. Instead of relying on every bit of code checking the return value and handling this properly, I think it makes much more sense to have ExtractData throw an exception. It obviously is an exceptional situation, and throwing makes sure that no code that doesn't explicitly handle such a scenario continues running and potentially causing harm.
2020-03-11 09:40:42 +00:00
..
glTF2Asset.h Change: ExtractData throws exception instead of returning false if data is invalid. 2020-03-11 09:40:42 +00:00
glTF2Asset.inl Change: ExtractData throws exception instead of returning false if data is invalid. 2020-03-11 09:40:42 +00:00
glTF2AssetWriter.h Updated copyright dates. 2020-01-20 08:53:12 -05:00
glTF2AssetWriter.inl Fix: GLTF animation works on RTS not matrix; fix matrix related bug. 2020-02-14 02:11:12 +00:00
glTF2Exporter.cpp Fix: GLTF animation works on RTS not matrix; fix matrix related bug. 2020-02-14 02:11:12 +00:00
glTF2Exporter.h Updated copyright dates. 2020-01-20 08:53:12 -05:00
glTF2Importer.cpp Trimmed trailing whitespaces 2020-02-28 19:19:10 -08:00
glTF2Importer.h Updated copyright dates. 2020-01-20 08:53:12 -05:00