mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 06:36:00 +08:00
Fix empty serialization. Fixes #44.
This commit is contained in:
parent
1e94d05012
commit
179edbf054
@ -3279,7 +3279,7 @@ static void SerializeValue(const std::string &key, const Value &value,
|
||||
obj[key] = jsonValue;
|
||||
} else {
|
||||
json jsonValue;
|
||||
std::vector<std::string> valueKeys;
|
||||
std::vector<std::string> valueKeys = value.Keys();
|
||||
for (unsigned int i = 0; i < valueKeys.size(); ++i) {
|
||||
Value elementValue = value.Get(valueKeys[i]);
|
||||
if (elementValue.IsInt())
|
||||
|
Loading…
x
Reference in New Issue
Block a user