mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 10:25:55 +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>();
|
const json &o = it->get<json>();
|
||||||
std::vector<int> nodes;
|
std::vector<int> nodes;
|
||||||
if (!ParseIntegerArrayProperty(&nodes, err, o, "nodes", false)) {
|
ParseIntegerArrayProperty(&nodes, err, o, "nodes", false);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Scene scene;
|
Scene scene;
|
||||||
scene.nodes = std::move(nodes);
|
scene.nodes = std::move(nodes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user