mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-23 22:50:11 +08:00
Possible fix for child values not being properly deserialized.
* Add the child_value parsed by ParseObjectProperty to the return value The omission of adding child_value to the return object appears to have been an oversight, as it is the only case where the parsed value is not added, and because child_value is otherwise unreferenced. This change also does give us the value that we are expecting in our use case after loading our glTF. Was this an oversight or an intentional omission?
This commit is contained in:
parent
6158f3489e
commit
1dbfe0ee13
@ -1021,6 +1021,7 @@ static void ParseObjectProperty(Value *ret, const picojson::object &o) {
|
||||
} else if (v.is<picojson::object>()) {
|
||||
tinygltf::Value child_value;
|
||||
ParseObjectProperty(&child_value, v.get<picojson::object>());
|
||||
vo[it->first] = child_value;
|
||||
}
|
||||
// TODO(syoyo) binary, array
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user