ddiakopoulos / tinyply

:earth_africa: C++11 ply 3d mesh format importer & exporter
598 stars 118 forks source link

Allowing requests of properties that were part of a previous failed request #30

Closed mfpgs closed 4 years ago

mfpgs commented 5 years ago

When a request for certain properties (e.g. 'r', 'g', 'b', 'a') fails, it is not possible to make a new request that includes previously requested properties (e.g. 'r', 'g', 'b'). With this change, all properties are validated before committing the request so that a failed request has no effect.

Also fixes the exception parameter was a pointer instead of string.

ddiakopoulos commented 4 years ago

Thanks!