ddiakopoulos / tinyply

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

non-const uint8_t* #40

Closed tobysharp closed 4 years ago

tobysharp commented 4 years ago

In PlyFile::add_properties_to_element I notice that argument uint8_t* data is a pointer to non-const data. Is this buffer modified by the function? If so, some comment to that effect would be helpful. If not, please change to const uint8_t* data.

ddiakopoulos commented 4 years ago

Hi @tobysharp thanks - I've fixed/updated this behavior in ca7b279fb6c9af931ffdaed96a3b11ca3ccd79ea. PlyFile::add_properties_to_element now respects const input pointers.