Fix missing output clear when reading text array in OpenFBX

https://github.com/nem0/OpenFBX/pull/80
This commit is contained in:
Wojtek Figat
2022-11-16 18:37:12 +01:00
parent 26ff8e62eb
commit ff8e002d33

View File

@@ -2131,6 +2131,7 @@ template <> const char* fromString<Matrix>(const char* str, const char* end, Mat
template <typename T> static void parseTextArray(const Property& property, std::vector<T>* out)
{
out->clear();
const u8* iter = property.value.begin;
for (int i = 0; i < property.count; ++i)
{