mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-23 22:50:11 +08:00
Fixed loading child nodes
Fixed a bug that was preventing child nodes from being loaded.
This commit is contained in:
parent
7c87797176
commit
bc9f2b2544
@ -1013,7 +1013,6 @@ bool ParseNode(Node &node, std::string &err, const picojson::object &o) {
|
||||
const picojson::array &childrenArray =
|
||||
(childrenObject->second).get<picojson::array>();
|
||||
for (size_t i = 0; i < childrenArray.size(); i++) {
|
||||
Node node;
|
||||
if (!childrenArray[i].is<std::string>()) {
|
||||
err += "Invalid `children` array.\n";
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user