mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 16:25:56 +08:00
don't fail if a scene has no nodes property (which is not required)
This commit is contained in:
parent
ff51570c26
commit
6143c6662b
@ -4563,9 +4563,7 @@ bool TinyGLTF::LoadFromString(Model *model, std::string *err, std::string *warn,
|
||||
}
|
||||
const json &o = it->get<json>();
|
||||
std::vector<int> nodes;
|
||||
if (!ParseIntegerArrayProperty(&nodes, err, o, "nodes", false)) {
|
||||
return false;
|
||||
}
|
||||
ParseIntegerArrayProperty(&nodes, err, o, "nodes", false));
|
||||
|
||||
Scene scene;
|
||||
scene.nodes = std::move(nodes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user