ddiakopoulos / tinyply

:earth_africa: C++11 ply 3d mesh format importer & exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

non-const uint8_t*

tobysharp opened this issue · comments

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.

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