mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 15:25:57 +08:00
Parse defaultScene
value correcrly. Fixes #47.
This commit is contained in:
parent
e69069d53c
commit
580d7c8b9f
@ -2862,7 +2862,7 @@ bool TinyGLTF::LoadFromString(Model *model, std::string *err, const char *str,
|
||||
// 9. Parse default scenes.
|
||||
{
|
||||
json::const_iterator rootIt = v.find("scene");
|
||||
if ((rootIt != v.end()) && rootIt.value().is_number_integer()) {
|
||||
if ((rootIt != v.end()) && rootIt.value().is_number()) {
|
||||
const int defaultScene = rootIt.value();
|
||||
|
||||
model->defaultScene = static_cast<int>(defaultScene);
|
||||
|
Loading…
x
Reference in New Issue
Block a user