spnda / fastgltf

A modern C++17 glTF 2.0 library focused on speed, correctness, and usability
https://fastgltf.readthedocs.io/v0.8.x/
MIT License
312 stars 48 forks source link

Fix URI moves for heap-allocated strings #21

Closed Eearslya closed 1 year ago

Eearslya commented 1 year ago

Funnily enough, the last fix which added readjustViews fixed the problem with stack-allocated strings, but broke heap-allocated strings. Since the move constructor is no longer default, the string views no longer get moved automatically, and now we have to do it.

Eearslya commented 1 year ago

Done and done.