mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 05:15:54 +08:00
Merge pull request #200 from ux3d/feature/allow-scenes-without-nodes
allow scenes without nodes
This commit is contained in:
commit
67aa2ca75e
@ -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